CSS 设置圆角div和阴影效果
2015-02-12 10:56
405 查看
</pre><pre name="code" class="html"><!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <div class="div"> <img src="../img/b.jpg" width="200px"> aaa </div> <style type="text/css"> .div{ /*阴影效果*/ filter:progid:DXImageTransform.Microsoft.Shadow(color=#909090,direction=120,strength=4);/*ie*/ -moz-box-shadow: 2px 2px 10px #909090;/*firefox*/ -webkit-box-shadow: 2px 2px 10px #909090;/*safari或chrome*/ box-shadow:2px 2px 10px #909090;/*opera或ie9*/ } .div{ background-color: hotpink; width: 300px; height: 400px; /*圆角效果*/ border-radius: 20px; -webkit-border-radius: 9px; -moz-border-radius: 9px; } img { margin: 20px 0 0 20px;/*圆角效果*/ -webkit-border-radius: 20px; <span style="font-family: Arial, Helvetica, sans-serif;">-moz-border-radius: 20px; border-radius: 20px; -webkit-box-shadow: inset 0 1px 5px rgba(0,0,0,.5); -moz-box-shadow: inset 0 1px 5px rgba(0,0,0,.5); box-shadow: inset 0 1px 5px rgba(0,0,0,.5); }</style></span><span style="font-family: Arial, Helvetica, sans-serif;"></body></html></span>
来源:http://myfetish.cn/
相关文章推荐
- CSS+DIV 设置圆角边框加阴影效果
- 黄聪:CSS+DIV 设置圆角边框加阴影效果
- Div+Css实现边框阴影效果
- css实现圆角效果的div,类似9宫格
- 在DW里面的CSS设置字体的阴影效果
- div边框加阴影效果的css
- CSS学习(六)-css圆角边框高级效果、边框阴影效果(上)
- div+css实现圆角效果
- css实现div阴影效果,兼容性较好
- div+css实现圆角即网页上常用的圆角效果
- DIV+CSS圆角效果的简易实现
- css设置div圆角
- 纯CSS DIV 圆角效果
- div+css 圆角加阴影
- 设置ul阴影效果和边框圆角
- CSS滤镜:DropShadow属性 设置字体/DIV等的阴影效果
- 蛙蛙推荐:css背景图片固定居中,div阴影,背景半透明,div圆角,DIV渐变
- 阴影效果 CSS+DIV
- iOS设置圆角矩形和阴影效果
- css技巧:实现圆角、阴影、透明效果