当前位置:

让 IE6, 7和 8支持 CSS3

发布时间:2010/07/31 – 10:08 下午

本文链接: 让 IE6, 7和 8支持 CSS3

浏览统计: 11

我们都知道IE6,7并不支持CSS3的属性,IE8也不能很好的支持CSS3。但是有一个小脚本能够做到,它可以让IE支持 3,包括:border-radius (rounded), box-shadow ( shadow), text-shadow等……

如果你需要一个支持CSS3 的box content,你需要添加一行代码:

behavior: url(ie-css3.htc);

代码:

[css].box {
-moz-border-radius: 15px; /* Firefox */
-webkit-border-radius: 15px; /* Safari and Chrome */
border-radius: 15px; /* Opera 10.5+, future browsers, and now also Internet Explorer 6+ using IE-CSS3 */
-moz-box-shadow: 10px 10px 20px #000; /* Firefox */
-webkit-box-shadow: 10px 10px 20px #000; /* Safari and Chrome */
box-shadow: 10px 10px 20px #000; /* Opera 10.5+, future browsers and IE6+ using IE-CSS3 */
behavior: url(ie-css3.htc); /* This lets IE know to call the script on all elements which get the ‘box’ class */
}
[/css]

下载此脚本:ie-css3.htc

ie-css3.htc

ie-css3.htc

点击查看详情:http://fetchak.com/ie-css3/

标签:

天津圣郡网络提供专业网站制作/网页设计/网站设计

转载自天津圣郡网络 <a href="http://www.esepu.com/2474.html" title="让 IE6, 7和 8支持 CSS3" rel="bookmark">让 IE6, 7和 8支持 CSS3 | 天津网页制作|天津网站设计|天津网站制作|天津网络公司|天津做网站|网络发现者</a>

热门设计案例

热门网站主题设计

web技能热门

最新文章

Copyright © 2005 – 2012 天津创游科技发展有限公司 All rights reserved