【发布时间】:2011-02-02 21:21:42
【问题描述】:
我有一些像这样构造的导航元素
<div id="topnavcontainer">
<a href='/web/link1.html' >link1</a>
<a href='/web/link2.html' >link2</a>
<a href='/web/link3.html' class='current'>link3</a>
</div>
#topnavcontainer a.current 的 CSS 指定了一个渐变并使用了DXImageTransform,以便 IE 也可以渲染渐变。
不过,它似乎只有在我将 #topnavcontainer a.current 设置为 display: block 时才有效,这会破坏导航的工作方式。
有谁知道解决办法吗?
【问题讨论】:
标签: html css internet-explorer cross-browser