1
4

4 回答 4

3

尝试将您的 CSS 更改为:

a span {
    background: #fff;
    display: inline-block;
}

尽管其他人已发布,text-decoration: none;但不起作用。

于 2010-03-30T09:42:48.163 回答
1

你为什么不试试?

a span{
    background: none;
    text-decoration: none;
}

我相信这适用于所有浏览器?


尝试添加background: none;到现有的 CSS 标记,如上所示。我会试着看看我是否不能让它在 IE6 上工作。

于 2010-03-30T09:35:05.427 回答
0

这行得通吗?

a{
    text-decoration: underline;
}

a span{
    background: #fff;  //To clean the bottom underlining under <span>
    text-decoration: none;
}
于 2010-03-30T09:35:10.630 回答
0

添加到精英绅士的答案:使用条件语句(首选)或下划线黑客仅针对 IE6:

a span {
  _text-decoration: none;
}
于 2010-03-30T09:37:50.670 回答