用text-align:center;来设置
transition: all 1s;设在什么地方?...text-align: center;
line-height: 150px;
color:#333;
border-radius: 10px;
transition: all 1s;...}
.btn-left:hover{
box-shadow:300px 0 rgba(0,0,0,.5) inset;
}
.btn-right:hover{
box-shadow...:-300px 0 rgba(0,0,0,.5) inset;
}
上面这两个是相反的哈
.btn-inset:hover{
box-shadow:0 0 0 10px rgba(0,0,0...,.5) inset;
}
.btn-inset-inset:hover{
box-shadow: 0 0 0 10px yellow inset,0 0 0 150px rgba(0,0,0