为什么不工作文字装饰:无?hmlt + css不工作文字装饰
在文字上始终是下划线。
<html>
<head>
<style type="text/css">
.search, .search_b1, .search_b2{
display: block;
color: #000;
text-decoration: none;
}
.search_b1:hover {
color: red;
}
</style>
</head>
<body>
<div id="left">
<a href = "#">
<span class="search">
<span class="search_b1">Text text</span>
<span class="search_b2">Text text</span>
</span>
</a>
</div>
</body>
</html>
我认为你的意思是border-bottom:none;在这个特殊的情况下。 – 2010-12-18 21:31:18
请注意,不幸的是,如果文本换行到新行,'border-bottom'技巧不起作用。 – tenfour 2010-12-18 21:31:41
这是真正的tenfour :-) – janhartmann 2010-12-18 21:32:26