我courious为什么"Should not be underlined"
字下面的代码仍然强调工作:text-decoration:none;没有一个简单的例子
<html>
<head>
<style type="text/css">
.badge1-link { text-decoration: none; }
.badge1 { text-decoration: underline; }
.badge2-link {text-decoration: underline;}
.badge2 {text-decoration: none;}
</style>
</head>
<body>
<a href="#" class="badge1-link"><span class="badge1">Underlined</span> | not underlined</a>
<br/>
<a href="#" class="badge2-link"><span class="badge2"> Should not be underlined</span> | Underlined</a>
</body>
</html>
你在浏览什么浏览器? – 2012-08-16 12:19:35
至少FF和Chrome。两个浏览器都显示相同的内容。 – Haradzieniec 2012-08-16 12:21:23
我知道它的未成年人,但'_'是CSS中的无效字符。如果你想要最终的兼容性,你应该使用camel case或者使用'-'来代替。 – 2012-08-16 12:23:16