简体   繁体   English

ie9边界半径css

[英]ie9 border radius css

I'm trying to get rounded corners to on of my css class with the code as it follows 我正试图通过代码跟随我的css类的圆角

border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;

I have been reading couple of articles related to my issue and the code above should be ok but in my case won't fire. 我一直在阅读与我的问题相关的几篇文章,上面的代码应该没问题,但在我的情况下不会解雇。

Add this to your markup as the very first line. 将其添加到您的标记作为第一行。

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

Use this for border radius for better compatibility with other browsers also. 将此用于边框半径,以便与其他浏览器更好地兼容。

     -moz-border-right-radius: 5px;
     -webkit-border-right-radius: 5px;
     border-right-radius: 5px;
     -moz-border-left-radius: 5px;
     -webkit-border-left-radius: 5px;
     border-left-radius: 5px;

IE9 uses CSS3 (the industry standard). IE9使用CSS3(行业标准)。 Your code should therefore work. 因此,您的代码应该有效。

A very common problem is that although you are using ie9, it might be rendering the page using an older version. 一个非常常见的问题是,虽然您使用的是ie9,但它可能会使用旧版本呈现页面。 See if compatibility mode is enabled by mistake. 查看是否错误地启用了兼容模式。 You could also try the developer tools (F12) and look at the document mode and browser mode (at the top) are set to IE9. 您还可以尝试使用开发人员工具(F12)并查看文档模式,并将浏览器模式(在顶部)设置为IE9。

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

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