<!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>

最新文章

  1. checkbox &amp; radio 的对齐问题
  2. Generate transparent shape on image
  3. bootstrap中table的colspan不起作用
  4. [Android Tips] 8. Install apk on multiple connected devices
  5. 使用 Nginx 来反向代理多个 NoderCMS
  6. I Hate It(线段树)
  7. javascript中数组循环的方式
  8. c#中的对象
  9. Liunx find/locate/whereis/which 总结
  10. 【BZOJ3167】[HEOI2013]SAO(动态规划)
  11. linux下的crontab安装及简单使用
  12. 根据传入的文件名称动态从moglifs图片服务器拿到pdf文档并在线浏览
  13. UML和模式应用2: 迭代、进化和敏捷
  14. IDEA 热部署- 自动编译设置
  15. FMUtils.KeyboardHook 轻量级键盘监听器
  16. .NET Core 和 .NET .Framework 速度比较
  17. nginx 场景业务汇总 (初)
  18. 【statistics】理想论坛2018-4-25日统计
  19. Oracle入门笔记 ——启动进阶
  20. 【LeetCode】100. Same Tree (2 solutions)

热门文章

  1. RPC-Thrift(三)
  2. 【BZOJ2527】【POI2011】Meteors [整体二分]
  3. Python学习笔记 - day6 - 函数
  4. Oracle基础 10 表 table
  5. Mac-安装itellij idea
  6. [ Openstack ] Openstack-Mitaka 高可用之 Rabbitmq-server 集群部署
  7. AC日记——[SHOI2008]小约翰的游戏John bzoj 1022
  8. 【转载】Linux中profile、bashrc、bash_profile之间的区别和联系
  9. 【cocos2d-js官方文档】四、基础数据类型
  10. Codeforces 1023 A.Single Wildcard Pattern Matching-匹配字符 (Codeforces Round #504 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Fi)