我無法從我的圖像中刪除邊框。我已經嘗試了很多次不同的屬性。仍然看到白色邊框。如果您有任何問題,請向我解釋。我有點新手。我無法刪除邊框
<head>
<style>
img{
border : none;
text-decoration: none;
}
#forum
{
background:url(forum_button.png) 0px 0px no-repeat;
width: 300px;
height: 81px;
}
#forum:hover
{
background:url(forum_button.png) -300px 0px no-repeat;
width: 300px;
height: 81px;
}
#facebook
{
background:url(social_buttons.png) 0px 0px no-repeat;
width: 29px;
height: 29px;
}
#facebook:hover
{
background:url(social_buttons.png) 0px -33px no-repeat;
width: 29px;
height: 29px;
}
#twitter
{
background:url(social_buttons.png) -31px 0px no-repeat;
width: 29px;
height: 29px;
}
#twitter:hover
{
background:url(social_buttons.png) -31px -33px no-repeat;
width: 29px;
height: 29px;
}
</style>
</head>
<body style="background:url(landing.png) no-repeat top #111111; width: 1280px; height: 1024px; border:0;">
<a href="#"><img id="forum" /></a>
<div id="social">
<a href="#"><img id="facebook"></a>
<a href="#"><img id="twitter"></a>
</div>
確定的IMG元素是正確的寬度和高度,你所使用的圖像? :) – Pawcu
我會建議不要使用沒有src屬性的img標籤。 –
請顯示截圖並顯示圖片。 – MMM