<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>


我可以覆盖除“文本装饰”以外的所有属性!为什么会这样呢?如何用类中定义的锚替换锚标记中定义的文本装饰?

请指教!

最佳答案

它是underline,而不是underlined

关于html - 带 anchor 标签的CSS帮助,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4938975/

10-12 12:55
查看更多