html - 简单的 CSS 给 IE 9 带来麻烦

标签 html css

我有这个 CSS 代码:

html {
    overflow-y: scroll;
}

body {
    background-color: #e4e4e4;
    font-size: 12px;
    font-family: Verdana, 'Lucida Grande', Arial, Sans-Serif;
    line-height: 1.6;
    color: #555;
}

#wrapper {
    width:950px;
    position: relative;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #333;
    -webkit-border-radius: 10px;
       -moz-border-radius: 10px;
            border-radius: 10px;
}

在 Chrome 中,它工作得很好,包装器位于任何屏幕分辨率的中间,并且有曲线边框。

但是到了IE9就很麻烦了,wrapper粘在左边,border不显示等等。

最佳答案

请参阅这篇关于圆 Angular 和 IE 9 的帖子 - IE9 border-radius

PS - 去我的 VM 上的 IE9 中解决这个问题,jsfiddle 在 IE9 中不起作用哈哈。

关于html - 简单的 CSS 给 IE 9 带来麻烦,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13883977/

相关文章:

javascript - AngularJS UI 路由器 : ui-sref not updating URL in address bar?

html - 移除滚动条

jquery - 单击并悬停 - 单击时显示文本?

css - 字体和 Wordpress : Font not showing some UTF-8 characters it should support

html - 为什么我的圈子不居中?

html - 使用 CSS 将鼠标悬停在 div 上时在 div 中显示图标

jQuery - 如何动态地将列表项添加到无序列表?

jquery - 如何在 ASP.NET MVC 中处理 HTML5 多文件上传?

css - 更改字体大小和行高 wordpress

javascript - 为什么我的 while 循环覆盖了 if 语句