什么是.htc文件?它如何在Internet Explorer中工作 [英] What is .htc file ?How it works in Internet explorer

查看:300
本文介绍了什么是.htc文件?它如何在Internet Explorer中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了.htc文件并嵌入在CSS中以获得Internet Explorer 8中的圆角。我想知道它是如何工作的

I downloaded the .htc file and embedded in css to get the rounded corners in internet explorer 8.But i am wondering how it works

.curved {

-moz-border-radius:10px;

-webkit-border-radius:10px;

behavior:url(border-radius.htc);

}


推荐答案

HTML组件,一种在网页上封装逻辑的方法。行为在 1999 w3 CSS工作草案中描述,但(据我所知)只有Microsoft在IE 5中提供了一个实现,今天有更好的方法来完成相同的任务。

It's an HTML Component, a means of encapsulating logic on a web page. Behaviors were described in a 1999 w3 CSS working draft but (as far as I know) only Microsoft provided an implementation in IE 5 and today there are better ways of accomplishing the same tasks.

另请参见:http://msdn.microsoft.com/en-us/library/ms531018.aspx

HTC应仅用作后备机制(您的示例演示)。

HTCs should only be used as a fallback mechanism (which your example demonstrates). Most of what is possible with them is possible using standard, cross-browser CSS and JavaScript in IE 9 and higher.

对于为什么它可以使用标准的跨浏览器CSS和JavaScript在IE 9和更高版本。作品,我的猜测是,该行为操纵特定于IE的功能,如DHTML过滤器或 VML ,可用于实现视觉结果在他们的时间之前(虽然现在已经废弃)。

As to why it works, my guess is that the behavior manipulates IE-specific functionality such as DHTML filters or VML which can be used to achieve visual results that were ahead of their time (though now deprecated).

这篇关于什么是.htc文件?它如何在Internet Explorer中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆