Text-decoration: none not working

后端 未结 14 2152
花落未央
花落未央 2021-01-01 09:08

Totally baffled! I\'ve tried rewriting the text-decoration: none line several different ways. I also managed to re-size the text by targeting it but the t

相关标签:
14条回答
  • 2021-01-01 09:29

    Add this statement on your header tag:

    <style>
    a:link{
      text-decoration: none!important;
      cursor: pointer;
    }
    </style>
    
    0 讨论(0)
  • 2021-01-01 09:30

    I just did it the old way i know that its not right but its a quick fix.

    <h1><a href="#"><font color="#FFF">LINK</font></a></h1>
    
    0 讨论(0)
  • 2021-01-01 09:31

    if you want a nav bar do

    ul{ list-style-type: none; } li{text-decoration: none;
    
    • This will make it want to make the style of the list type to None or nothing

    with the < a > tag:

    a:link {text-decoration: none}
    
    0 讨论(0)
  • 2021-01-01 09:35

    Use CSS Pseudo-classes and give your tag a class, for example:

    <a class="noDecoration" href="#">
    

    and add this to your stylesheet:

    .noDecoration, a:link, a:visited {
        text-decoration: none;
    }
    
    0 讨论(0)
  • 2021-01-01 09:35

    try adding this to your stylesheet:

    a {text-decoration:none;}
    
    0 讨论(0)
  • 2021-01-01 09:36

    I have an answer:

    <a href="#">
        <div class="widget">  
            <div class="title" style="text-decoration: none;">Underlined. Why?</div>  
        </div>
    </a>​
    

    It works.

    0 讨论(0)
提交回复
热议问题