本文操作环境:Windows7系统、HTML5&&CSS3版,DELL G3电脑
css3做一个带阴影的button按钮
效果对比鼠标划上前与后:
复制代码1
2
<!--html代码-->
<input class="but" type = "button" value = "确认" />
登录后复制
复制代码1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!--css代码-->
<style type="text/css">
.but{
border: 0px groove orange;
box-shadow: 5px 6px 10px #000;
margin-left: 160px;
border-radius: 10px;
background: #034c92;
color: white;
width: 250px;
height: 40px;
font-size: 20px;
}
.but:hover{
box-shadow: 8px 10px 10px #000;
background: #005DF9;
}
</style>
登录后复制
【推荐学习:css视频教程】
以上就是css怎么给button设置阴影的详细内容,更多请关注靠谱客其它相关文章!
最后
以上就是高挑皮卡丘最近收集整理的关于css怎么给button设置阴影的全部内容,更多相关css怎么给button设置阴影内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复