internet-explorer-9 - 在 IE9 中使用 "border-radius"无效

标签 internet-explorer-9 css cornerradius

我用 Google 搜索了这个,但找不到解决方案。我正在对我的 div 应用圆 Angular 半径,但 IE9 不显示效果。

CSS:

.ipleft {
width: 512px;
height:300px;
-webkit-border-radius: 10px 0px 0px 10px;
-khtml-border-radius: 10px 0px 0px 10px;
-moz-border-radius: 10px 0px 0px 10px;
border-radius: 10px 0px 0px 10px;
background-image: url(images/ipleft.png);
float: left;}

.ipright {
width: 512px;
position: relative;
height:300px;
-webkit-border-radius: 0px 10px 10px 0px;
-khtml-border-radius: 0px 10px 10px 0px;
-moz-border-radius: 0px 10px 10px 0px;
border-radius: 0px 10px 10px 0px;
background-image: url(images/ipright.png);
float: right;}

我添加了适当的元标记,但它仍然不起作用!该网站是 www.campusonsale.com。如果您使用 FF 查看圆 Angular 应用没有问题,但 IE9 显示矩形 Angular !

最佳答案

您的网站正在以怪癖模式显示。这是因为您在 <script> 之前有一些内容( <!doctype> 元素) .在怪癖模式下,IE 使用类似于 IE5 的渲染,因此 border-radius不起作用。

关于internet-explorer-9 - 在 IE9 中使用 "border-radius"无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8142490/

相关文章:

javascript - ie9 的 CSS 选择下拉菜单问题

css - IE9 最初无法识别带有 SVG 背景图像的伪元素的高度

javascript - 当用户上下滚动屏幕时旋转图像

javascript - 使用javascript旋转div点击

wpf - 使用 CornerRadius 为 ListBox 自定义 Border 属性

java - 如何让ImageView出现在圆内的随机位置?

java - Selenium WebDriver 的 Keys.chord() 函数在 Internet Explorer 中不起作用(9)

css - 使用 "ellipse"作为 IE-9 的渐变

css - Bootstrap3 - 在小型设备上将按钮分成 2 行

ios - 如何为 aspect fit 模式设置圆角的 UIImageView