我无法删除边框

Ive*_*ios 5 html css image border

我无法从我的图片中删除边框.我尝试了很多次使用不同的属性.仍然看到白色边框.如果您有任何建议导致问题的原因 - 请向我解释.我是新手.

<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>
Run Code Online (Sandbox Code Playgroud)

Mag*_*nus 8

这是因为img标签必须有一个带有正确链接的src ="",否则它会像你的情况一样将图像显示为背景(因为img上有css),并且它上面有一个破碎的图像

="#"><img id="facebook"></
Run Code Online (Sandbox Code Playgroud)

它不是边框,你看到的是破碎的图像边框.

如果要保留代码,请将img标记更改为div.