本文介绍了border-radius和IE 7和IE8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在布局上应用border-radius并且我在IE 7和IE8上遇到问题。我正在使用PIE.htc,但我仍然无法进行兼容性工作。

I am applying border-radius on my layout and I having problems with IE 7 and IE8. I'm using the PIE.htc but I still can not do the compatibility works.

代码是:

border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-top: 0;

-moz-border-top-left-radius: 4px;
-webkit-border-top-left-radius: 4px;
behavior: url(PIE.htc);

我在ieTester测试,有人可以帮我吗?

I'm testing in ieTester, can anyone help me?

推荐答案


  1. 如果你使用行为:url(PIE.htc); 那么你的 Pie.htc 应与html页面或母版页位于同一文件夹中。

  2. 您网页的doctype应为XHTML或HTML5。

  3. 然后我的经验表明,最好将行为代码置于css规则之上。

  4. 最好不要使用IE Tester作为信任的效用。它提出了一个充满工具的手,但不是很有用。最好使用IE 9,然后在其开发人员工具中更改其浏览器和文档模式。当你更改它们时,整个页面将在该模式下重新加载。它甚至有一个奇怪的模式,这是一个完整的总夜魇。

  1. if you use behavior: url(PIE.htc); then your Pie.htc should be in the same folder as your html page or master page.
  2. your page's doctype should be XHTML or HTML5.
  3. then my experience says its better to place the behavior code on top your css rule.
  4. you better not use IE Tester as a trustful utility. It came up with a hand full of tools but not quite useful ones. its better to use IE 9, then change its browser and document mode in its developer tools. when you change them the whole page will reload in that mode. it even has quirk mode which is a complete total NIGHTMARE.

如果您可以通过更多有关您的代码和浏览器的事实来更新您的问题。

And if you can update your question with more facts about your code and browser.

这篇关于border-radius和IE 7和IE8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 21:02