【CSS3】制作带光晕的网页“Button“
生活随笔
收集整理的这篇文章主要介绍了
【CSS3】制作带光晕的网页“Button“
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
效果图
静态的界面是这样的:
当鼠标移动到类似于Button的部分上的时候,会出现指定颜色的光晕(这里设置的颜色与模拟Button颜色一致):
网页源码
<!DOCTYPE html> <html><head><meta http-equiv="content-type" content="text/html" ;charset="UTF-8"><title>Red-Button</title><style>body{background:#ccc;}div{width:200px;height:50px;margin:30px auto;font-size:30px;line-height:45px;text-align:center;color:#fff;border:5px solid #fff;border-radius:10px;background:#ff421f;cursor:pointer;}div:hover{box-shadow:0 10px 40px 5px #ff421f;}</style></head><body><div>A</div><div>B</div><div>C</div><div>D</div></body> </html>总结
以上是生活随笔为你收集整理的【CSS3】制作带光晕的网页“Button“的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 多个小int的乘法小心溢出哦(记洛谷P1
- 下一篇: 【CSS3】CSS3支持的颜色表示方法大