IE8 CSS攻击仅适用于本地计算机而不是服务器

时间:2013-10-15 16:49:49

标签: asp.net css internet-explorer internet-explorer-8

我使用if条件和样式表来解决与IE8相关的问题:

<!--[if lt IE 9]>
        <link href="<% = Page.ResolveUrl("~/css/iehacks.css") %>" rel="stylesheet" type="text/css" />
<![endif]-->

这是CSS:

#menuBar {
    margin-top: 2.65em;
}

#editing {
    margin-top: -3.30em;
    margin-left: 38em;
    margin-bottom: 1em;
}

.selectionTable th, .selectionTable td {
    float: left;
    padding: 0 3em 0 0em;
}

.selectionTable2 th, .selectionTable2 td {
    padding: 1em 4.3em 0 0em;
}

.selectionTableScrum th, .selectionTableScrum td {
    height: 3em;
}

#ieShiftField {
    margin-left: 1.50em;
}

h1 {
    padding-top: 1em;
}

#search {
    padding-top: 1em;
}

我遇到的问题是,当我测试代码并通过我的本地开发服务器运行应用程序时,它看起来很好: enter image description here

当我将网站发布到服务器时,css hacks似乎无法正常工作:

enter image description here

浏览器不应该得到相同的回复吗?我究竟做错了什么?感谢。

0 个答案:

没有答案