本文介绍了如何使用border-radius.htc与IE来做圆角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用border-radius.htc与IE建立圆角



我使用



但它在我的html页面中不起作用!我不知道为什么!

  -moz-border-radius:5px; 
-khtml-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
behavior:url('Js / border-radius.htc');
  / *我尝试了../Js/border-radius.htc工作太* / 
/ *我尝试'/Js/border-radius.htc'它不工作* /
/ *我试过'Js / border-radius.htc'it didn' t work too * /


解决方案

HTC ;




  • 服务器必须使用正确的MIME类型(text / x-组件)这到你的配置或.htaccess:AddType text / x-component .htc


  • 在CSS中的URL是相对于CSS文件... HTC引用是相对的到调用HTML页面 - 要小心。



How to use border-radius.htc with IE to make rounded corners

I am using border-radius.htc to fix border-radius in IE

It is works very well herehttp://www.faressoft.org/eshterakat/border-radius/border-radius.html

But it doesn't work in my html page ! I don't know why !http://www.faressoft.org/eshterakat/

-moz-border-radius:5px;
-khtml-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
behavior:url('Js/border-radius.htc'); 
/* I tried '../Js/border-radius.htc' it didn't work too */
/* I tried '/Js/border-radius.htc' it didn't work too */
/* I tried 'Js/border-radius.htc' it didn't work too */
解决方案

There are 2 gotchas with HTC's;

  • The server has to server the HTC with the correct MIME type (text/x-component) if your on Apache add this to your config or .htaccess: AddType text/x-component .htc

  • In CSS URLs are relative to the CSS file... HTC references are relative to the Calling HTML page - be careful.

这篇关于如何使用border-radius.htc与IE来做圆角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 17:29