Front End Stage Summary: Scroll bar, JS multi-parameter method

Source: Internet
Author: User

First, scroll bar:

Overflow, the following property values are available:

Visible default value. The content is not trimmed and is rendered outside the element box.

Hidden content is trimmed, and the rest is not visible.

Scroll content is trimmed, but the browser displays scroll bars to see the rest of the content.

Auto If the content is trimmed, the browser displays a scroll bar to view the rest of the content.

Inherit specifies that the value of the overflow property should be inherited from the parent element.

Instance:

<style type = "Text/css" > #Themedetail {width:100%;height:200px;overflow:auto;} #marketThemeDetail {Overflow:hidden;} </style>

<div id= "Marketthemedetail" class= "Easyui-dialog" style= "height:360px;width:60%" title= "View Details" closed= "true" > <table style= "border-collapse:separate; border-spacing:0px 5px; " > <tr><td> topic Title: </td><td> <p id= "Themetitle" ></p> </td> </tr>< Tr><td> participants: </td><td> <p id= "themegroups" ></p> </td></tr><tr> <td> keywords: </td><td> <p id= "Themekeywords" ></p> </td></tr><tr><td valign= "Top" > Theme content: </td><td><div id= "Themedetail" ></div></td></tr><tr ></TR><TR></TR><TR><TD valign= "Top" > Accessories: </td><td><div id= " Attachments "></div></td></tr>   </table></div>


Second, JS multi-parameter method invocation:

Instance:

function Downloadfiles (url,downloadname) {window.location.href = ' <%=basepath%>market/markettheme/ Download.action?url= ' + URL + ' &downloadname= ' + downloadname;}

</pre><pre name= "Code" class= "JavaScript" >for (var i = 0;i<json.data.attachments.length;i++) {<span Style= "White-space:pre" ></span>url + = ' <a href= ' javascript:void (0); "style=" text-decoration:underline; Color:blue; "onclick=" downloadfiles (\ ' +json.data.attachments[i].url+ ' \ ', \ ' +json.data.attachments[i].attname+ ') \ ') "> ' +json.data.attachments[i].attname+ ' </a> ';}


<strong>onclick= "Downloadfiles (\ ' +json.data.attachments[i].url+ ' \ ', \ ' +json.data.attachments[i].attname + ' \ ') ' </strong>





Front End Stage Summary: Scroll bar, JS multi-parameter method

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.