我无法从我的图像中删除边框。我已经尝试了很多次不同的属性。仍然看到白色边框。如果您有任何问题,请向我解释。我有点新手。我无法删除边框
<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