【发布时间】:2014-10-18 05:29:49
【问题描述】:
a.nhl:link,a.nhl:visited{font-style:verdana;background: #fff; position: relative; padding-top:5px; padding-bottom: 5px; color: #666; font-size: 15px;
font-weight:200; text-transform: uppercase; line-height: 24px;-ms-word-wrap: break-word; word-wrap: break-word;}
a.nhl:active{color:red;text-decoration:underline;}
a.nhl:hover{color:red;text-decoration:underline;}
a.nhls:link,a.nhls:visited {font-style:verdana;background: #fff; position: relative; padding-top:5px; padding-bottom: 5px; color: #666; font-size: 15px;
font-weight: 200; text-transform: uppercase; line-height: 24px;-ms-word-wrap: break-word; word-wrap: break-word;}
a.nhls:active{color:red;text-decoration:underline;}
a.nhls:hover{font:bold;color:red;text-decoration:underline;}
<a class='nhls' href=\"index.php\" > Home </a >
<a class='nhl' href=\"index.php?title=sample\"> sample </a >
上面的 css 不适用于第二个链接。我无法找出类和链接有什么问题。
谢谢
【问题讨论】:
-
请让你的代码变得不可读!
-
您的代码运行良好。 jsfiddle.net/37g8avg7