本文介绍了CSS3边框半径和Internet Explorer 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网页使用CSS3 border-radius样式,我希望它在跨主要浏览器,包括IE8的跨浏览器兼容。



因此,我试图使用border-radius.htc文件来实现这一点。无论在我的CSS样式中使用border-radius,我都编码了:

  -webkit-border-radius:6px 6px 6px 6px; 
border-radius:6px 6px 6px 6px;
behavior:url(border-radius.htc);不幸的是,当我在IE8中检查网页时,所有具有border-radius行为的背景都会结束。



网页位于



任何建议都非常感激。

解决方案

我不知道你正在使用border-radius.htc文件,但如果你使用,它是。从他们的页面:


I am using CSS3 border-radius styles in my webpage and I want it to be cross-browser compliant across major browsers including IE8.

Therefore, I am trying to use the border-radius.htc file to achieve this. Wherever in my css styles the border-radius is used, i have coded something like:

   -webkit-border-radius: 6px 6px 6px 6px;
    border-radius: 6px 6px 6px 6px;
    behavior:url(border-radius.htc);

Unfortunately, when I check the webpage in IE8, all the backgrounds that have border-radius behavior end up not showing at all.

The webpage is at http://www.domainandseo.com/portfolio/dominos/index.html

Any suggestions would be highly appreciated.

解决方案

I don't known which "border-radius.htc" file you're using, but if you're using something like CSS3 PIE, it's a known issue. From their page:

这篇关于CSS3边框半径和Internet Explorer 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 06:57