<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>按钮样式设计</title>
<style>
#btn1{
width: 100px;
height: 50px;
font-size: 30px;
margin-left: 20px;
margin-top: 20px;
font-weight: bold;
box-shadow: 2px 2px 10px red,
-2px 2px 10px black,
2px -2px 10px green,
-2px -2px 10px blue;
background-color: gold;
color: #ffffff;
border: 2px dashed darkcyan;
border-radius: 0px;
}
#btn1:hover{
background-color: black;
color: greenyellow;
border-radius: 100px;
}
</style>
</head>
<body>
<button id="btn1">按钮</button>
</body>
</html>
效果图:
前:
触碰后: