Support for “border-radius” in IE

后端 未结 11 1319
心在旅途
心在旅途 2020-11-22 06:48

Does anyone know if/when Internet Explorer will support the \"border-radius\" CSS attribute?

11条回答
  •  轮回少年
    2020-11-22 07:09

    Yes! When IE9 is released in Jan 2011.

    Let's say you want an even 15px on all four sides:

    .myclass {
     border-style: solid;
     border-width: 2px;
     -moz-border-radius: 15px;
     -webkit-border-radius: 15px;
     border-radius: 15px;
    }
    

    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 . If that tag exists, border-radius will never work in IE.

提交回复
热议问题