How to disable automatic links coloring without selecting a color?

后端 未结 4 460
梦谈多话
梦谈多话 2021-02-02 06:26

this is really confusing, i don\'t want the browser to change the color of links, so the links color will stay same as specified in . i know that i can

4条回答
  •  猫巷女王i
    2021-02-02 07:11

    If anyone cares this is what I did with buttons that I made from the links. Probably have to watch out for the inheritance but it worked perfect in my case. Good luck!

    HTML:

    Place Your Order Today
    

    CSS:

    a.button:visited
    {
     color:inherit;
    }
    .button
    {
     padding: 6px 8px;
     font-size: 14px;
     font-weight: bold;
     text-decoration: none;
     margin-right: 10px;
     border-radius: 6px;
    }
    .blue
    {
     border: 1px solid #2d748c;
     background-color: #40b5dc;
    }
    

提交回复
热议问题