(一) 效果对比鼠标划上前与后:
<!--html代码-->
<input class="but" type = "button" value = "确认" />
<!--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>
.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>
版权声明:本文为leipeng46原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。