为什么IE9需要元标记来呈现圆角? [英] Why does IE9 require a meta tag to render rounded corners?
问题描述
在刚刚发布的IE9中,您需要提供元标记< meta http-equiv =X-UA-Compatiblecontent =IE = 9/& code>允许css
border-radius
呈现。
In IE9, which was just released, you need to provide the meta tag <meta http-equiv="X-UA-Compatible" content="IE=9" />
to allow the css border-radius
to render.
为什么?
推荐答案
此链接: http://blogs.msdn.com/b/ie/archive/2010/06/16/ie-s-compatibility- features-for-site-developers.aspx 表示元标记不是启用border-radius的唯一方法。
This link: http://blogs.msdn.com/b/ie/archive/2010/06/16/ie-s-compatibility-features-for-site-developers.aspx indicates that the meta tag is not the only way to enable border-radius. Instead, you can change your doctype.
阅读整篇文章以确定是否要使用doctype或元标记。
Read the whole article to determine whether you want to use the doctype or the meta tag, though.
这篇关于为什么IE9需要元标记来呈现圆角?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!