国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > CSS > 正文

CSS3教程:使css3的屬性在ie中正常顯示

2024-07-11 08:22:49
字體:
供稿:網(wǎng)友

今天在群里看到gucong說的,寫一下筆記。

[成都]gucong(35803719) 15:07:19
PIE給我們帶來了CSS3屬性在IE中的支持
selectivizr給我們帶來了CSS3選擇器在IE中的支持

------------------------------------------------------謝了~哈哈
我先看的pie,所以這篇筆記我記載的pie。
若是沒有pie的話,僅僅用css3寫得圓角效果,在IE中不兼容。加上pie就可以。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pie的使用</title>
<style type="text/css">

body{behavior:url("csshover.htc");}
.test{
color:#fff;
border: 1px solid #696;
padding: 60px 0;
text-align: center;
width: 200px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: #666 0px 2px 3px;
-moz-box-shadow: #666 0px 2px 3px;
box-shadow: #666 0px 2px 3px;
background: #EEFF99;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#EEFF99), to(#66EE33));
background: -webkit-linear-gradient(#EEFF99, #66EE33);
background: -moz-linear-gradient(#EEFF99, #66EE33);
background: -ms-linear-gradient(#EEFF99, #66EE33);
background: -o-linear-gradient(#EEFF99, #66EE33);
background: linear-gradient(#EEFF99, #66EE33);
-pie-background: linear-gradient(#EEFF99, #66EE33);
behavior: url("PIE.htc");

}
.test:hover{
cursor:pointer;
border: 1px solid #696;
padding: 60px 0;
text-align: center;
width: 200px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
-webkit-box-shadow: #666 0px 2px 3px;
-moz-box-shadow: #666 0px 2px 3px;
box-shadow: #666 0px 2px 3px;
background: #cccccc;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#cccccc), to(#ff0000));
background: -webkit-linear-gradient(#cccccc, #ff0000);
background: -moz-linear-gradient(#cccccc, #ff0000);
background: -ms-linear-gradient(#cccccc, #ff0000);
background: -o-linear-gradient(#cccccc, #ff0000);
background: linear-gradient(#cccccc, #ff0000);
-pie-background: linear-gradient(#cccccc, #ff0000);
behavior: url("PIE.htc");}

</head>

<body>

<div class="test">
碰觸變色

</body>
</html>

參考資料 http://css3pie.com/
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 固镇县| 沙洋县| 永靖县| 锦屏县| 漳浦县| 湘乡市| 札达县| 鸡泽县| 延庆县| 西城区| 滦平县| 元谋县| 遵义县| 自贡市| 呼和浩特市| 宝鸡市| 古丈县| 徐汇区| 吉隆县| 东丰县| 怀宁县| 仲巴县| 军事| 金湖县| 田林县| 汉沽区| 阿荣旗| 霍邱县| 临朐县| 夏邑县| 察雅县| 嘉义县| 达日县| 阿巴嘎旗| 闵行区| 塘沽区| 凤阳县| 鲁山县| 贵德县| 烟台市| 手游|