當鼠標光標位於幫助圖標上時,我嘗試顯示一個範圍。如何在CSS中移除圖像邊框?
它的工作原理,但是,我不設法刪除圖標周圍的邊框。
我的CSS:
.info{
position:absolute;
border:none;
}
a.info{
position:absolute;
z-index:24;
background:none;
color:#000;
text-decoration:none
}
a.info:hover{
z-index:25;
background-color:#FFF;
cursor:help;
}
a.info span{
display: none
}
a.info:hover span{
display:block;
position:absolute;
cursor:help;
bottom:0px;
left:26px;
width:150px;
padding:4px;
}
CD
如果你想刪除的圖像周圍的邊框,你爲什麼不只是刪除圖像周圍的邊界? '.info img {}' – Boldewyn 2010-01-28 09:26:00
嘗試使用'div'代替'img'標籤 – 2013-07-22 09:48:37
[
可能內部有獲取藍色邊框](http://stackoverflow.com/questions/2922858/img-inside-a-得到藍色邊界) –
2013-12-29 23:33:00