0
我想和引導glyphicons替換CSS圖像與引導Glyphicons更換圖像
這裏我的代碼:
.inputShowPwd > .showpass {
display: none;
position: absolute;
height: 24px;
width: 24px;
top: 50%;
margin-top: -12px;
right: 6px;
background:url(image/show.png) 50% 50% no-repeat;
}
這是代碼的預覽:
其實,它的工作,但我想用bootstrap glyphicons來替換它,因爲從我附加的圖像當我放大顯示圖像變得模糊時
所以我想問一下,如何在css中用引導符號替換圖像?任何建議,將不勝感激
嗨,@Sachin Sanchaniya 感謝您回覆我的問題,我想用CSS代替HTML樣式的眼睛圖片。 我更新我的代碼在CSS上,它已經工作。 .inputShowPwd> .showpass {*} {*} border:1px solid #ddd; */ display:none; position:absolute; height:24px; width:24px; top:50%; margin-top:-10px; right:2px; } .inputShowPwd> .showpass:after { content:「\ f06e」; font-family:「FontAwesome」; } –
他想通過CSS替換圖像,而不是重構HTML。 – Aslam