Tag:A label

  • Simple implementation of a tag download link


    Just point the path to the file path. Note that the new download attribute in HTML5 allows us to specify a new file name when the browser downloads, that is, rename the downloaded file on the client. Instead of the original file name on the link, the suffix of the download name can be changed, […]

  • How to click a tag to pop up the input file upload dialog box


    html Copy code The code is as follows: <SPAN class=tag><<SPAN class=title>div</SPAN>></SPAN> < span class = tag > < span class = title > a < / span > < span class = attribute > a < / span > = < span class = value > “########################################<SPAN class=tag><<SPAN class=title>input</SPAN> <SPAN class=attribute>type</SPAN>=<SPAN class=value>”file”</SPAN> <SPAN class=attribute>name</SPAN>=<SPAN class=value>”image”</SPAN> […]

  • The method of canceling the background color of a tag in H5


    1. Cancel the blue color of a tag when clicking on the mobile terminal a { -webkit-tap-highlight-color: rgba(255, 255, 255, 0); -webkit-user-select: none; -moz-user-focus: none; -moz-user-select: none; } 2. When the image is used as the click button of a tag, there will be a gray background when touch start is triggered a,a:hover,a:active,a:visited,a:link,a:focus{ -webkit-tap-highlight-color:rgba(0,0,0,0); -webkit-tap-highlight-color: […]

  • What is the function and writing order of a tag pseudo class


    The functions of a tag pseudo class are as follows “: link”: the state in which a tag has not been accessed; “: visited”: the state in which a tag has been accessed; “: hover over the mouse”: hover over the label; “: active”: the state of a tag when pressed by the mouse; When […]

  • A comparative introduction of a tag’s attribute and onclick event


    First of all, when the mouse clicks the a tag, the onclick event will be executed first, and then the action under the attribute (page Jump, or JavaScript pseudo link). If you don’t want to execute the action under the attribute, onclick needs to return false. Generally, onclick is written as follows: onclick = “xxx(); […]

  • The target of a tag points to the difference between the name and ID of iframe


    Copy code The code is as follows: <iframe name=”myFrameName” scrolling=”no” frameborder=”0″ style=”width:200px; height:150px; “></iframe> <a href=”../ashx/Print2 DCodeImage.ashx?codeInfo=Demo123 “Target =” myframename “> Print QR code</a> The target of the a tag above points to the iframe whose name is myframename. It is not suitable to use ID as the target. If the target is “myframeid”, only […]

  • A. whether a new page is opened on the tag


    A whether to open a new page on the tag:(1) Baidu Encyclopedia: if the header is different, a new page must be opened; if the header is the same, it is possible to open a new page; the law is uncertain(2) Sina home page: the header part is opened in the current page, no matter […]

  • Two usages of a tag in HTML post request


    Examples of two usages of a tag in HTML post request are as follows: 1. Using Ajax to initiate post request The HTML code is as follows: <a href=” https://www.jb51.net/ ” class=”a_ Post “> initiate post request</a> The jQuery code is as follows: $(“.a_post”).on(“click”,function(event){ event.preventDefault (); // makes the method provided by a invalid, that […]

  • A. There are words and pictures in the label. How to hide the text and display the picture only


    It is often encountered that the < a > tag has a style, which is to display a picture, but the label contains text and wants to hide the text. In many cases, you will think of it text-indent:-9999em; But today, we found that in IE7 and 360 default ie mode, the pictures are not […]

  • An example of the execution sequence between the HTML hyperlink a tag’s jump and onclick


    The execution relationship between the HTML hyperlink a tag’s jump and onclickThe “a” tag of HTML is used to jump. However, if the onclick event is added, the execution order?As follows:[code]< a http: / / 1. HTML “onclick =” return confirm (‘Do you want to delete this node? ‘);” ><img src=” shanchu.gif “></a> If onclick […]

  • A how to underline a label and how to keep it unchanged before and after clicking


    Copy code The code is as follows: a:link { font-size: 12px; color: #000000; text-decoration: none; } a:visited { font-size: 12px; color: #000000; text-decoration: none; } a:hover { font-size: 12px; color: #999999; text-decoration: underline; } In this way, you can define a style sheet to realize your functions. If you don’t have a style sheet, you […]