/* 自定义查询按钮样式 */
.query {
width: 0.4rem;
height: 0.22rem;
line-height: 0.22rem;
border: 1px solid #C6C6C6;
outline: 0;
cursor: pointer;
}
/* 不写 :active 状态,没有类似点击弹起效果 */
.query:active {
box-shadow: inset 0 3px 5px 0 rgba(0,0,0,0.2);
}

本文详细介绍了如何使用CSS来自定义一个查询按钮的样式,包括宽度、高度、边框、阴影等属性,使按钮在不同状态下的显示效果更加美观。
8232

被折叠的 条评论
为什么被折叠?



