IE6实现图片或背景的圆角效果
2014-06-27 14:14
435 查看
使用ie-css3.htc实现背景圆角效果
ie-css3.htc下载链接:http://pan.baidu.com/s/1gdknU3x
查看ie-css3详细信息:http://www.evernote.com/shard/s329/sh/9b193dc6-3bb7-4320-9736-b09c764c1735/72c350c1a668af63172fb53fe1f73457
上面这种对于<img>标签不能达到效果。
使用DD_roundies实现圆角
DD_roundies下载地址:
DD_roundies.js:http://pan.baidu.com/s/1o68wluE
DD_roundies.min.js:http://pan.baidu.com/s/1jGqTwI6
查看DD_roundies详细信息:http://www.evernote.com/shard/s329/sh/a4a78b4f-4551-41a5-88b8-4e0af5adc6b5/5d0f63706de13e6862447f3d936e17df
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style> .box { background-image: url(Demo.jpg); height: 165px; width: 220px; -moz-border-radius: 15px; /* Firefox */ -webkit-border-radius: 15px; /* Safari Chrome */ border-radius: 15px; /* Opera 10.5+, Internet Explorer 6+ IE-CSS3 */ -moz-box-shadow: 10px 10px 12px #000; /* Firefox */ -webkit-box-shadow: 10px 10px 12px #000; /* Safari 和 Chrome */ box-shadow: 3px 3px 10px #000; /* Opera 10.5+, IE6+ IE-CSS3 */ behavior: url(ie-css3.htc); /* 对IE-CSS3的引用 */ } </style> </head> <body> <div class="box"></div> </body> </html>
ie-css3.htc下载链接:http://pan.baidu.com/s/1gdknU3x
查看ie-css3详细信息:http://www.evernote.com/shard/s329/sh/9b193dc6-3bb7-4320-9736-b09c764c1735/72c350c1a668af63172fb53fe1f73457
上面这种对于<img>标签不能达到效果。
使用DD_roundies实现圆角
<!DOCTYPE HTML> <html> <head> <script src="DD_roundies.js"></script> </head> <body> <div class="test" style="background-image:url(2.jpg);width:88px;height:106px;"> </div> <img src="2.jpg" alt="" class="test"/> <script type="text/javascript"> DD_roundies.addRule('.test', '10px 10px', true); </script> </body> </html>
DD_roundies下载地址:
DD_roundies.js:http://pan.baidu.com/s/1o68wluE
DD_roundies.min.js:http://pan.baidu.com/s/1jGqTwI6
查看DD_roundies详细信息:http://www.evernote.com/shard/s329/sh/a4a78b4f-4551-41a5-88b8-4e0af5adc6b5/5d0f63706de13e6862447f3d936e17df
相关文章推荐
- css实现可扩展的图片背景圆角边框,在IE6,IE7,Firefox下通过测试
- 用CSS实现无图片背景圆角效果
- 不使用背景图片实现圆角效果
- 告别图片—使用字符实现兼容性的圆角尖角效果beta版
- CSS实现PNG图片背景透明效果
- 自定义TabHost实现背景图片随选项卡切换滑动效果
- 告别图片—使用字符实现兼容性的圆角尖角效果beta版
- background-postion定位与图片结合实现圆角效果
- 【小技巧】无须图片照样可以实现圆角效果
- CSS Filter 代替 图片 实现 渐变背景效果。
- 不用css样式表和背景图片实现圆角矩形
- 【浏览器兼容性】 IE6下背景图片默认不缓存,导致hover效果闪烁的解决办法
- 如何使png图片在ie6里实现透明背景
- Delphi中实现设置TEdit透明背景图片效果 本文来自Delphi之窗
- css 网页背景图片 怎样用CSS实现大背景网页效果
- 告别图片—使用字符实现兼容性的圆角尖角效果beta版
- [Javascript] 解决 IE6 中 png 图片背景不支持透明效果的问题
- 怎样实现表格背景图片的拉伸效果
- JQuery实现开关灯效果以及图片的显示背景变暗
- 分享一个自己利用javascript中的window.setInterval()定时器实现页面背景图片淡入淡出效果