gpt4 book ai didi

html - CSS 帮助 anchor 标记

转载 作者:太空宇宙 更新时间:2023-11-03 19:54:03 25 4
gpt4 key购买 nike

<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”之外的所有属性!为什么会这样?我如何用类中定义的文本装饰覆盖 anchor 标记中定义的文本装饰?

请指教!

最佳答案

underline,不是underlined

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com