Does anyone know if/when Internet Explorer will support the "border-radius" CSS attribute?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- Is TWebBrowser dependant on IE version?
While you're waiting.. Curved corner (border-radius) cross browser
Use
-ms-border-radius: 15px
, any element that uses css -ms- is compatible with IE.A workaround and a handy tool:
CSS3Pie uses .htc files and the behavior property to implement CSS3 into IE 6 - 8.
Modernizr is a bit of javascript that will put classes on your html element, allowing you to serve different style definitions to different browsers based on their capabilities.
Obviously, these both add more overhead, but with IE9 due to only run on Vista/7 we might be stuck for quite awhile. As of August 2010 Windows XP still accounts for 48% of web client OSes.
SOLVED - not rendering border radius correctly in IE 10 and 11
For those not getting the -ms-border-radius: or the border-radius: to work in IE 10,11 And it renders all square then follow these steps:
Yes! When IE9 is released in Jan 2011.
Let's say you want an even 15px on all four sides:
IE9 will use the default
border-radius
, so just make sure you include that in all your styles calling a border radius. Then your site will be ready for IE9.-moz-border-radius
is for Firefox,-webkit-border-radius
is for Safari and Chrome.Furthermore: don't forget to declare your IE coding is ie9:
Some lazy developers have
<meta http-equiv="X-UA-Compatible" content="IE=7" />
. If that tag exists, border-radius will never work in IE.