我有一个奇怪的问题,在每个问题中,我要么是图片,要么是文字,出现在......下面
我已经像这样给了css外部事件内部
a:hover {
text-decoration: none;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:active {
text-decoration: none;
}该问题出现在safari10、Mozilla8和google chrome中
提前感谢你的帮助,如果之前有人问过这个问题,我真的很抱歉。
发布于 2011-11-18 16:29:26
试试这个:
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}我认为它们需要按这个顺序排列。
请阅读评论。这是原问题的正确答案。
发布于 2011-11-18 16:27:40
你试过这个吗?
a {
text-decoration: none;
}发布于 2011-11-18 16:33:30
您可以使用CSS属性text-decoration轻松删除下划线,只需针对链接的不同状态将其设置为none即可。
示例:
<html>
<head>
<style type="text/css">
a:link {text-decoration: none;} /* unvisited link */
a:visited {text-decoration: none;} /* visited link */
a:hover {text-decoration: none;} /* mouse over link */
a:active {text-decoration: none;} /* selected link */
</style>
</head>
<body>
<a href="https://www.google.com" target="_blank">Link without underline</a>
</body>
</html>https://stackoverflow.com/questions/8179604
复制相似问题