完全不知所措!我试着用几种不同的方式重写text-decoration: none
。我也设法重新确定文字的大小,但text-decoration: none
代码不会。文字装饰:无所谓
非常感谢。
代码
.widget
{
height: 320px;
width: 220px;
background-color: #e6e6e6;
position: relative;
overflow: hidden;
}
.title
{
font-family: Georgia, Times New Roman, serif;
font-size: 12px;
color: #E6E6E6;
text-align: center;
letter-spacing: 1px;
text-transform: uppercase;
background-color: #4D4D4D;
position: absolute;
top: 0;
padding: 5px;
width: 100%;
margin-bottom: 1px;
height: 28px;
text-decoration: none;
}
a .title
{
text-decoration: none;
}
<a href="#">
<div class="widget">
<div class="title">Underlined. Why?</div>
</div>
</a>
您的文本没有为我加下划线。 – 2012-07-10 18:57:46
你使用什么浏览器? – jfrej 2012-07-10 18:57:59
我与尼古拉,没有强调。另外,发布演示时请考虑整理您的空白空间;我们的目标是让我们可以轻松地进行演示,查看和阅读。此外,嵌套在“a”元素中的'div'在HTML5之外是无效的,因此在使用该构造时请确保您的文档类型。 – 2012-07-10 18:58:04