简体   繁体   English

IE7中不支持边界半径

[英]Border radius not supporting in IE7

i know border-radius property wont support in IE7 . 我知道在IE7中不支持border-radius属性。

Is there any css tricks to do border-radius in IE7 browsers. IE7浏览器中是否有任何css技巧来做border-radius。

You can use CSS3 PIE to get this working. 您可以使用CSS3 PIE来实现这一点。

To get it add the pie.htc file to the ROOT of your site. 要获取它,请将pie.htc文件添加到站点的ROOT中。 In your CSS file where you want to use border-radius add the following code: 在要使用border-radius的CSS文件中,添加以下代码:

behavior: url(path/to/PIE.htc);

In normal CSS the url is relative to the CSS file. 在普通的CSS中,url是相对于CSS文件的。 For htc files it is relative to the ROOT of your website. 对于htc文件,它相对于您网站的ROOT。 This is important as it won't work otherwise. 这很重要,因为否则不起作用。 Blame Microsoft. 怪微软。

NOTE: 注意:

If it's not working still then add this to your selectors: 如果它仍然不起作用,那么将其添加到您的选择器:

position: relative;
z-index: 0;

There are plenty of "tricks" to get rounded corners in browsers that do not support the "border-radius" CSS property. 在不支持“border-radius”CSS属性的浏览器中,有很多“技巧”可以获得圆角。 Just do a google search for "rounded corners css". 只需谷歌搜索“圆角css”。 This one seems promising for instance. 例如,这个似乎很有希望。

Currently, IE 9 and 10 are the only versions of IE that support border-radius. 目前,IE 9和10是唯一支持border-radius的IE版本。 IE 8 and below do not support border-radius. IE 8及更低版本不支持border-radius。

Check this http://css3pie.com/ 查看此http://css3pie.com/

use make a curve border .ping image in photoshop and use it .....because border-radius-bottomleft ,border-radius-bottom right etc not work on ie6-8.... 使用在Photoshop中制作曲线边框.ping图像并使用它.....因为border-radius-bottomleft,border-radius-bottom right等不适用于ie6-8 ....

use that code for border-radius working well .... 使用该代码的边缘半径工作良好....

** **

background-color: #E8EDEF;
    border-radius: 10px 10px 10px 10px;
    display: block;
    margin-left: 78px;
    width: 591px;
behavior: url(pie/PIE.htc);

** **

and also see for border-radius http://css3pie.com/ 并且还可以看到border-radius http://css3pie.com/

given in detail in document 在文件中详细说明

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

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