demo地址
https://stackblitz.com/edit/js-l96wbs
html
<button class="btn">button</button>
css
.btn {
width: 60px;
height: 32px;
outline: none;
transition: .5s;
}
.btn:active {
background-color: #00f;
color: #fff;
}
demo地址
https://stackblitz.com/edit/js-l96wbs
html
<button class="btn">button</button>
css
.btn {
width: 60px;
height: 32px;
outline: none;
transition: .5s;
}
.btn:active {
background-color: #00f;
color: #fff;
}
本文标题:按钮按下时增加样式效果
本文链接:https://www.haomeiwen.com/subject/xvvsaqtx.html
网友评论