Remove the underline from the a tag

<a href="#" style="text-decoration:none;" >Underline</a>

 

 

  1. There are more detailed settings.

    a:link{text-decoration:none; /* refers to a normal unvisited link*/

    }a:visited{text-decoration:none; /*Refers to the link that has been visited*/

    }a:hover{text-decoration:none;/*means the mouse is on the link*/}a:active{text-decoration:none;/*means the link being clicked*/ 

    }

  2. 4

    You can try the following code, and compare the following to know the usage of the A tag.

     

    <style type="text/css">a:link{text-decoration: none;color: red /* refers to normal unvisited links*/}a:visited{text-decoration:none; /* refers to Links that have been visited*/}a:hover{ text-decoration:underline; font-size:50px;color:blue/* means the mouse is over the link*/}a:active{text-decoration:none;/* means Dotted link*/ }</style> <a href="">here is the A tag</a>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326938829&siteId=291194637