我有一個簡單的圖像,我點擊圖像添加css邊框3px,但問題是,當我點擊活動類是好的,但圖像縮小了一下,它看起來像尺寸標識不同,圖像縮小,而點擊它們
看起來就像圖像是縮小一點點,但寬度和高度是一樣的
我想保持形象,甚至對主動模式
的3px的邊框li img {
cursor: pointer;
border-radius: 4px;
box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
li .active img {
border: 3px solid #01b9d1;
border-radius: 6px;
cursor: default;
}
.overview {
width: 140px;
height: 77px;
}
<div>
<a>
<img class="overview" src="imgsrc">
</a>
</div>
THX它不工作 - 圖像的尺寸是相同的,但它的外觀像圖像是縮小一點點 – Scopi