<html>
<head>
<style type="text/css">
a{
color: #753C52;
font-weight:bold;
font-size:11px;
text-decoration:none;
border: solid 1px yellow;
}
.viewInBrowserLinkStyle {
color: #666666;
font-size: 20px;
line-height: 14px;
border: solid 1px red;
text-decoration:underlined;
}
</style>
</head>
<body>
<a href="http://www.w3schools.com" class="viewInBrowserLinkStyle ">
This is a link</a>
</body>
</html>
我可以覆盖“text-decoration”以外的所有属性!为什么这样?我怎样才能覆盖在类定义的锚定标记中定义的文本装饰?带锚标记的CSS帮助
请指教!
西部最快的枪! – thirtydot 2011-02-08 22:00:51