由 IIS 提供服务时 CSS 呈现方式不同
这个问题似乎不是特定于浏览器的,通常适用于 webkit/gecko/mozilla 样式中的样式。
例如,当我做一个网站模型并使用如下样式:
element.class {
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #800000;
}
或
element:last-child {
....
}
通过双击打开文件时,样式将按我的预期呈现。但是,当将该样式应用于 IIS7 提供的实时站点时,该样式似乎已被忽略。我已经查看了该网站的 IIS 配置,但似乎不明白为什么会这样。
任何帮助将不胜感激。
谢谢!
This problem doesn't seem browser specific and generally applies to style in the webkit/gecko/mozilla styles.
For example, when I do a site mockup and use a style like:
element.class {
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #800000;
}
or
element:last-child {
....
}
When opening the file via double-clicking on it, the style renders as I would expect. However, when applying the style to a live site served by IIS7, the style seems to have been ignored. I've gone through the site's IIS config and can't seem to see why this would be.
Any help would be greatly appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能不是由于网络服务器造成的。以下是故障排除时可以查看的一些内容:
That is probably not due to the web server. Here are a few things you could look for when troubleshooting: