鼠标滑过边框加阴影css3
2017-07-24 15:58
344 查看
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> div { border:#CCC solid 1px; width:200px; height:200px;} div:hover { box-shadow: 0px 0px 5px #888888;/* 边框阴影 */ -moz-box-shadow: 0px 0px 5px #888888; /* 老的 Firefox */ } </style> </head> <body> <div></div> </body> </html>
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>无标题文档</title> <style> .xiangmu .mid ul li:hover { -moz-box-shadow: 5px 5px 10px #ddd; -webkit-box-shadow: 5px 5px 10px #ddd; box-shadow: 5px 5px 10px #ddd; transform: translate3d(0,-2px,0); } .xiangmu .mid ul li { padding: 15px 30px; height: 170px; border-top: 1px solid #ddd; transition: all 0.5s; } </style> </head> <body> <div class="xiangmu"> <div class="mid"> <ul> <li>111111</li> <li>2222222222</li> <li>3333333333</li> <li>4444444444</li> </ul> </div> </div> <div class="tou_lan"><h4><a href="#">aaaaaaa</a></h4></div> <div class="tou_right"><h4><a href="#">bbbbb</a></h4></div> </body> </html>
相关文章推荐
- CSS3鼠标滑过动画线条边框特效
- 纯CSS3实现8组超炫酷鼠标滑过图片动画
- CSS3边框阴影,折角效果演示
- CSS3边框图片、边框阴影、文本阴影
- css3 边框阴影 box-shadow
- css3-边框 圆角 阴影 等属性
- CSS3下实现边框阴影效果(上)之曲线阴影
- CSS3下实现边框阴影效果(下)-翘边阴影效果
- css3鼠标滑过图片放大
- CSS3制作炫酷带方向感应的鼠标滑过图片3D动画
- css3添加边框或字体阴影
- JS实现鼠标滑过显示边框的菜单效果
- 纯代码利用CSS3 圆角边框和盒子阴影 制作 iphone 手机效果
- Silverlight Textbox,Password去除鼠标滑过边框
- 9种CSS3 blend模式制作的鼠标滑过图片标题特效
- css3基础 div:hover::before 鼠标经过div时出现边框线
- 鼠标移动到图片上,图片显示阴影边框,其他一些样式积累
- 9种CSS3 blend模式制作的鼠标滑过图片标题特效
- CSS3选择器、边框、阴影
- css3 边框阴影效果