【发布时间】:2013-08-08 11:59:59
【问题描述】:
我有一个带有下拉菜单的网站,我使用chosen 来获得漂亮的外观。
除了 IE9 之外,它在所有浏览器中的外观都相同(hoover = 灰色背景)。
使用BrowserStack进行测试
ASP.NET 代码:
<select data-placeholder="Select some tags" class="chzn-select" multiple style="width: 350px;" tabindex="4">
<option value=""></option>
<option value="Online">Online</option>
<option value="Offline">Offline</option>
<option value="Registered">Registered</option>
<option value="Unregistered">Unregistered</option>
</select>
CSS 代码:
.chzn-container .chzn-results .highlighted {
background-color: #aaa;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#aaa', endColorstr='#999', GradientType=0 );
background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #aaa), color-stop(90%, #999));
background-image: -webkit-linear-gradient(top, #aaa 20%, #999 90%);
background-image: -moz-linear-gradient(top, #aaa 20%, #999 90%);
background-image: -o-linear-gradient(top, #aaa 20%, #999 90%);
background-image: linear-gradient(#aaa 20%, #999 90%);
color: #fff;
}
.chzn-container .chzn-results .highlighted em {
background: transparent;
}
看起来 IE9 没有获取属性..
但是为什么呢? Visual Studio 2012 告诉我 IE 与这些参数兼容。
感谢所有提示,谢谢!
【问题讨论】:
-
我喜欢这篇文章的标题 :)
标签: html asp.net css visual-studio-2012 internet-explorer-9