【问题标题】:css code dont shows on servercss代码不显示在服务器上
【发布时间】:2012-03-24 20:57:54
【问题描述】:

我有一个加载图像,我想在屏幕中间显示,但它只是出现在其余的东西上。这是我使用的css代码

#overlay {
position: fixed;
z-index: 99;
top: 0px;
left: 0px;
background-color: #f8f8f8;
width: 100%;
height: 100%;
filter: Alpha(Opacity=90);
opacity: 0.9;
-moz-opacity: 0.9;
}            
#theprogress {
background-color: #fff;
border:1px solid #ccc;
padding:10px;
width: 300px;
height: 30px;
line-height:30px;
text-align: center;
filter: Alpha(Opacity=100);
opacity: 1;
-moz-opacity: 1;
}
#modalprogress {
position: absolute;
top: 40%;
left: 50%;
margin: -11px 0 0 -150px;
color: #990000;
font-weight:bold;
font-size:14px;
}

它可以在 Visual Studio 2010 中运行,但当我将它放在服务器上时却不行

【问题讨论】:

  • 你的其他东西都用它是什么意思?
  • 它将其余部分向下推并放在顶部
  • 我建议你也发布你的 html..

标签: asp.net css visual-studio-2010


【解决方案1】:

我希望我能理解你,如果我理解了,我会提供以下答案:

<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
        ....
</head>

我最近遇到了一些 CSS 问题,在我的机器上一切都运行良好,但是当我部署在服务器上时,即使在相同版本的浏览器中运行它,我也得到了不同的 HTML。

所以我把这个元标记放在我的 HTML 的 head 部分,一切都运行良好。

你也可以试试:

<meta http-equiv="X-UA-Compatible" content="IE=9" />

<meta http-equiv="X-UA-Compatible" content="IE=8" />

希望对你有帮助,

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多