【发布时间】:2014-06-08 08:04:23
【问题描述】:
我正在ORACLE APEX 使用自定义主题开发应用程序。
应用程序在除 IE 之外的所有浏览器中都能完美运行,但 IE 无法正常显示颜色。
这个结果来自我的 chrome 浏览器。
现在在 Internet Explorer 8 (IE8) 中,这一切都搞砸了,颜色效果无法正常显示。
这是我的CSS 1,2,3,4 <div>
.top-tabs .tab:nth-child(1),.head1 .region-header {
background-color: #014fa2;
}
.top-tabs .tab:nth-child(2),.head2 .region-header {
background-color: #1e69b9;
}
.top-tabs .tab:nth-child(3),.head3 .region-header {
background-color: #3481d2;
}
.top-tabs .tab:nth-child(4),.head4 .region-header {
background-color: #58a1f0;
}
这是我的HTML
<ul class="top-tabs">
<li class="tab">
<a href="#">
<div class="top-tab-nr">1</div>
<div class="top-tab-label">Admission<br>Application</div>
</a>
</li>
<li class="tab">
<a href="#">
<div class="top-tab-nr">2</div>
<div class="top-tab-label">Pay<br>Application Fee</div>
</a>
</li>
<li class="tab">
<a href="#">
<div class="top-tab-nr">3</div>
<div class="top-tab-label">Submit<br>Required Documents</div>
</a>
</li>
<li class="tab">
<a href="#">
<div class="top-tab-nr">4</div>
<div class="top-tab-label">Sign up<br>Information</div>
</a>
</li>
</ul>
有什么帮助/指南可以克服这个吗??
【问题讨论】:
-
别以为IE8支持
nth-child选择器 -
好吧,因为它看起来像一个完整的其他页面(没有完成任何步骤等等),我的第一个猜测是你错过了对 CSS 文件的包含?也许在
!--[if IE....里面? -
由于
IE8不支持它,所以jQuery版本可能是$(".tab:nth-child(1n)")的替代版本。 -
@pete - 可能的解决方案是什么?
标签: css internet-explorer oracle-apex