`

IE css3 的behavior实现

阅读更多
.test {
    width:560px;
    height:400px;
    background-color: blue;
    padding:10px 8px 6px; 
    border: 2px solid #C0C0C0; 
    margin-bottom:10px;
    border-radius: 10px;
    behavior: url(css/ie-css3.htc);
}

behavior的路径是相对于当前页面的

<html>
<head><title>测试主机Content-Type</title>
<link rel="stylesheet" href="css/style.css"/>
<body>
	<div class="test">
		这个页面是用以测试主机是否有正确的content-type。
	</div>
</body>
</html>
分享到:
评论

相关推荐

    iecss3.htc支持输入框圆角

    支持IE页面输入框圆角,完美解决。记得阅读里面的文档帮助

    让IE中支持css3.0效果

    但凡是前端工程师,都知道IE6,IE7,IE8不支持、或者不完全支持CSS3的属性。 CSS3 有很多很强大、绚丽的效果,比如,圆角,阴影,渐变透明,渐变背景,等等。 因为IE6时代,没有什么标准,而因为各种原因,IE6用户...

    ie-css3.htc

    解决部分CSS3在IE下的兼容性问题 格式:background-color: #ffffff; width: auto; margin: 0 5px 2px 5px; border-style: solid; border-width: 0 1px 1px 1px;... behavior: url(ie-css3.htc);

    让ie也支持css3

    自己起一个公用类名,然后用behavior引入,哪个容器需要用到css3的样式就在这个容器上加上这个class类名

    CSS属性behavior的语法使用说明

     取值: url ( url ) : 使用绝对或相对 url 地址指定DHTML行为组件(.htc) url ( #objID ) : 使用二进制实现(作为 ActiveX:registered: 控件)的行为。此处的 #objID 为 object 对象的 id 属性值 url ( #...

    css3pie-2.0beta1

    CSS3的很多新属性在IE9及以前的版本中都没法实现,而CSS3pie正好可以解决这个问题,只需要在CSS代码中引入如下代码即可: behavior: url(path/to/pie_files/PIE.htc); 这样IE9及以前的版本就能支持CSS3的属性了。

    让IE6支持png半透明图片(支持背景平铺、定位)

    4 如果想使用背景平铺和定位的效果,以前的步骤做完之后,我们还要再引用 iepngfix_tilebg.js 这个js,才能使png图片在ie6中平铺时实现透明效果,像下面这样: &lt;script type="text/javascript" src="iepngfix_...

    CSS3支持IE6, 7, and 8的边框border属性

    我们都知道,IE 6,7不支持新增加的CSS3...使用方法很简单: behavior: url(ie-css3.htc); 代码 复制代码代码如下: .box { -moz-border-radius: 15px; /* Firefox */ -webkit-border-radius: 15px; /* Safari and Chrom

    CSS Cookbook, 3rd Edition

    You’ll learn about the behavior of the latest browsers-including IE 8, Firefox 3, Safari 4, and Google Chrome-and how you can resolve differences in the ways they display your web pages. Arranged in...

    实现DIV +CSS圆角

    让IE支持圆角和阴影的文件 CSS这样写 &lt;style type="text/css"&gt; #DIVID{ -moz-border-radius: 11px; -khtml-border-radius: 11px; -webkit-border-radius: 11px;... behavior: url(ie-css3.htc); }

    一个小脚本HTC文件补丁让 IE6, 7和 8支持CSS3

    让 IE6, 7和 8支持CSS3 IE6,7并不支持CSS3的属性,IE8也不能很好的支持CSS3...behavior: url(ie-css3.htc); 代码: 复制代码代码如下: .box { -moz-border-radius: 15px; /* Firefox */ -webkit-border-radius: 15px

    CSS横向下拉菜单(兼容IE6)

    今天刚把IE7卸了装了IE6,一般的,由于CSS驱动的下拉菜单不能在IE6中正常工作,大多数人会选择用JavaScript去实现下拉菜单,但其实CSS也可以做到的哦~~ 这个关键就是这个语句:body { behavior:url(csshover.htc);...

    让IE 6,7,8支持CSS3的部分属性及htc的应用

    让IE 6,7,8支持CSS3的部分属性。今天要给大家介绍的这个htc,它可以让IE浏览器支持CSS3的border-radius、box-shadow、border-image、CSS3 Backgrounds (-pie-background)、Gradients、RGBA属性。不相信?你可以在IE...

    CSS3 Pie工具推荐–让IE6-8支持一些优秀的CSS3特性

    首先看到能让IE8及以下的IE亲们用上css3的border-radius和Gradient还有box-shadow着实兴奋了一大把。是的,你没有看错,用css3PIE就可以了,想了解猛戳链接。这里也不介绍怎么使用了,官方有文档。 这是一坑 但还是...

    Beginning CSS: Cascading Style Sheets for Web Design, 2nd Edition(part1)

    All about the CSS Level 1, 2, 2.1, and 3 specifications Ways to manipulate text and select effects for your fonts Bugs and workarounds for IE6 and IE7 How to control the flow of your document layout ...

    CSS网站布局实录 (第二版)PDF版

    第3章 CSS网页布局与定位 3.1 认识div 3.1.1 div是什么 3.1.2 如何使用div 3.1.3 理解div 3.1.4 并列与嵌套div结构 3.1.5 使用合适对象来布局 3.2 一列固定宽度 3.3 一列宽度自适应 3.4 二列固定宽度 3.5 二列宽度...

    csshover.htc在IE7下使用:active伪类无效解决方法

    csshover 相信做前端开发都知道,IE6、IE7都不支持:active伪类,IE6更甚,连:hover伪类都不支持。为了解决这个问题,一般都会引入一个csshover.htc文件来解决。 目前该文件版本为3.11, 如果你发现自己使用的不是...

    完美解决IE6不支持hover的方法

    对于类似的“p:hover”、“img:hover”、“#header:hover”...,今天给大家介绍一种新的方法,可以完美解决IE6不支持hover的情况,用法很简单,将下载后的“csshover.htc”文件,定义在body样式内“body { behavior:...

    csshover.htc

    body { behavior: url("csshover.htc"); } /*注意路径*/

    IE修复PNG问题办法

    --[if lt IE 7]&gt;&lt;style type="text/css"&gt;img{behavior:url('iepngfix.htc');}&lt;/style&gt;&lt;![endif]--&gt; Either ensure the trans.gif file is in the same directory as the HTC file, or edit line fourteen as ...

Global site tag (gtag.js) - Google Analytics