htc支持CSS3
2024-08-29 19:58:19
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>html5标签</title> <style> .round{
width: 100px;
height: 100px;
background: red;
border-radius: 50px;
box-shadow: 0px 0px 20px #000;
} </style> </head>
<body>
<div class="round"> </div>
</body>
</html>
css3的border-radius在IE下没有效果,解决方法:
首先下载ie-css3.htc脚本,然后在css中加入:
behavior: url(ie-css3.htc);
当你使用了这个htc文件后,你的CSS里面,只要写有box-shadow, -moz-box-shadow或-webkit-box-shadow的任何一种,IE就会渲染。
当使用了这个htc文件后,你不能这样写box-shadow: 0 0 10px red; 而应该是box-shadow: 0px 0px 10px red; 否则IE中会失效。
不支持RGBA值中的alpha透明度。
不支持inset内阴影。
不支持阴影扩展。
阴影在IE中只会显示为黑色,不管你设置成其它什么颜色。
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>html5标签</title> <style>
*{
behavior: url(ie-css3.htc);
}
.round{
width: 100px;
height: 100px;
background: red;
border-radius: 50px;
box-shadow: 0px 0px 20px #000;
} </style> </head>
<body>
<div class="round"> </div>
</body>
</html>
最新文章
- checkbox &; radio 的对齐问题
- Generate transparent shape on image
- bootstrap中table的colspan不起作用
- [Android Tips] 8. Install apk on multiple connected devices
- 使用 Nginx 来反向代理多个 NoderCMS
- I Hate It(线段树)
- javascript中数组循环的方式
- c#中的对象
- Liunx find/locate/whereis/which 总结
- 【BZOJ3167】[HEOI2013]SAO(动态规划)
- linux下的crontab安装及简单使用
- 根据传入的文件名称动态从moglifs图片服务器拿到pdf文档并在线浏览
- UML和模式应用2: 迭代、进化和敏捷
- IDEA 热部署- 自动编译设置
- FMUtils.KeyboardHook 轻量级键盘监听器
- .NET Core 和 .NET .Framework 速度比较
- nginx 场景业务汇总 (初)
- 【statistics】理想论坛2018-4-25日统计
- Oracle入门笔记 ——启动进阶
- 【LeetCode】100. Same Tree (2 solutions)
热门文章
- RPC-Thrift(三)
- 【BZOJ2527】【POI2011】Meteors [整体二分]
- Python学习笔记 - day6 - 函数
- Oracle基础 10 表 table
- Mac-安装itellij idea
- [ Openstack ] Openstack-Mitaka 高可用之 Rabbitmq-server 集群部署
- AC日记——[SHOI2008]小约翰的游戏John bzoj 1022
- 【转载】Linux中profile、bashrc、bash_profile之间的区别和联系
- 【cocos2d-js官方文档】四、基础数据类型
- Codeforces 1023 A.Single Wildcard Pattern Matching-匹配字符 (Codeforces Round #504 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Fi)