card-inner border 1px solid blue; height 21vh; background #ffffff; padding 0 0 30px 0; item-header display flex; justify-content space-between; card-inner-title flex 1 1 auto;
您可以使用以下CSS样式来实现您的要求:
.card-info-btn {
display: inline-block;
width: 50px;
height: 30px;
line-height: 30px;
text-align: center;
cursor: pointer;
margin: 0 1px;
border: 1px solid #cccccc;
}
.card-info-btn:hover {
border-color: blue;
}
.card-info-btn:active {
background-color: blue;
color: white;
}
这段样式将会在鼠标移入按钮时将边框颜色改为蓝色,在鼠标点击按钮时将背景颜色改为蓝色,字体颜色改为白色。当鼠标移出按钮时,按钮的样式将会还原。
原文地址: https://www.cveoy.top/t/topic/iOAH 著作权归作者所有。请勿转载和采集!