.style
{
-moz-border-radius:8px;
-webkit-border-radius:8px;
}
Because one of those properties is for Gecko ( -moz-
) browsers, the other is for WebKit ( -webkit-
) browsers.
For IE9 (and Opera 10.50+) you can add the standard declaration:
border-radius: 8px;
For previous versions you'll have to find another solution.
Because IE 8 doesn't use -moz- (Mozilla Firefox) nor -webkit- (Chrome, Safari) prefixes and it simply doesn't support CSS 3 yet.
border-radius is part of CSS 3.
对于6-> 8的IE,我建议使用CSS3PIE 。
To do round corners in IE use this jQuery plugin. It draws corners in IE using nested divs (no images). It has native border-radius rounding in browsers that support it (Opera 10.5+, Firefox, Safari, and Chrome). So in those browsers the plugin simply sets a css property on the element
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.