【发布时间】:2010-05-04 17:03:12
【问题描述】:
我将以下 div 呈现给客户端,但在 IE 上,checked-yes 类被忽略。如果我在“开发人员工具”中查看目标元素,则 Style 面板中完全缺少该类。 shift-item-present 类附加在服务器端,checked-yes 类附加在客户端,取决于父行的 present 属性,如下所示。
<td><div class="shift-item-present checked-yes" jQuery1272958392665="94"/></td>
父行:
<tr class="shift-item" id="ctl00_mainContentPlaceHolder_ctl00_shiftList_ctl01_shiftRow" present="True" shift-id="641" jQuery1272958392665="64">
该页面在 FF 中完美运行。这是 CSS,都在同一个文件中:
.shift-item-present
{
top: 2px;
left: 2px;
height: 12px;
width: 20px;
background-repeat: no-repeat;
background-position: center right;
}
.checked-yes
{
background-image: url('../Images/Icons/checked-yes-xs.png');
}
【问题讨论】:
-
我假设没有应用 CSS,你也可以发布吗?
标签: css internet-explorer internet-explorer-8