How to change the style of the title attribute inside an anchor tag?

前端 未结 10 1300
故里飘歌
故里飘歌 2020-11-21 22:27

Example:

 Link 

How do I change the presentation of the \"title\" attribute in th

10条回答
  •  一生所求
    2020-11-21 23:14

    a[title="My site"] {
        color: red;
    }
    

    This also works with any attribute you want to add for instance:

    HTML

    My Stuff

    CSS

    .my_class[anything="whatever"] {
        color: red;
    }
    

    See it work at: http://jsfiddle.net/vpYWE/1/

提交回复
热议问题