简体   繁体   English

IE9 不识别边界半径

[英]IE9 not recognizing border-radius

I cannot get IE9 to recognize my CSS border style: border-radius: 10px;我无法让 IE9 识别我的 CSS 边框样式: border-radius: 10px; . . I also tried using <meta http-equiv="X-UA-Compatible" content="IE=9" /> , but it just messes up my background (it cuts a piece from my background at the bottom).我也尝试使用<meta http-equiv="X-UA-Compatible" content="IE=9" /> ,但它只会弄乱我的背景(它从我的背景底部切下一块)。

<html>
<style>
.outer{
    background: url('http://v4m.mobi/php/i/images/grey_background.jpg');
    vertical-align: middle;
    text-align: center;
    width: 100%;
    height: 100%;


.inner{
margin: 0 auto;
border: 3px solid #444444;
vertical-align: middle;
-moz-border-radius: 10px; 
-webkit-border-radius: 10px;
border-radius: 10px;  /* <-- This line */
background-color: #999999;
}

.inner td{
width: 213.33px;
height: 340px;
}
</style>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" style="margin: 0; 
 padding: 0; border: none">

<div class="outer">
<div style="padding-top: 5%;"></div>
<table class="inner" cellspacing="10">
    <tr>
        <td bgcolor="#ffffff">referferf$<br/>dcsdcsd</td>
    </tr>
</table>
</div>
</body>
</html>

The only solution is to use standards rendering mode - add <!doctype html> or X-UA-Compatible header. If it broke some other parts of your website, it just means you should rewrite your code because it's optimized for IE's quirks mode.唯一的解决方案是使用标准呈现模式 - 添加<!doctype html>X-UA-Compatible header。如果它破坏了您网站的其他部分,则意味着您应该重写您的代码,因为它针对 IE 的怪癖模式进行了优化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM