码迷,mamicode.com
首页 > Web开发 > 详细

[CSS3] Identify Interactive HTML Elements with CSS Link Pseudo Classes

时间:2018-12-05 00:21:22      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:tag   gre   targeting   gate   att   get   can   ide   ebs   

The interactive pseudo-classes for links (and buttons) allow us to make sure the user knows what elements on the page are interactive and that they can use them to navigate the website.

 

Targeting the a tag with href attr:

a[href]:hover {
  text-decoration: underline;
}

 

or 

a:link:hover {
  border: 2px solid green;
}

 

[CSS3] Identify Interactive HTML Elements with CSS Link Pseudo Classes

标签:tag   gre   targeting   gate   att   get   can   ide   ebs   

原文地址:https://www.cnblogs.com/Answer1215/p/10067965.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!