图像链接显示小的人工制品

时间:2012-07-02 21:43:21

标签: html anchor image

我在一些图片上有几个链接。代码非常简单如下:

<div id="socialnetworkbuttons">
    <a href="http://www.facebook.com/">
        <img src="images/facebook-button.png" alt="Facebook" />
    </a>
    <a href="https://twitter.com/" alt="Twitter">
        <img src="images/twitter-button.png" />
    </a>
</div>

我有一个reset.css:

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

和其他css:

#socialnetworkbuttons {
    display:inline-block;
    float:left;
}

结果如下:

enter image description here

正如你所看到的那样,底部是一个小的紫色椭圆形人工制品,这是一个指向facebook的链接。我敢肯定,我会想到一些非常简单明了的东西,但我怎么能摆脱它?!

1 个答案:

答案 0 :(得分:1)

看起来像A.中的额外空格:

<div id="socialnetworkbuttons"><a
     href="http://www.facebook.com/"><img
        src="images/facebook-button.png" alt="Facebook" /></a><a
     href="https://twitter.com/" alt="Twitter"><img
        src="images/twitter-button.png" /></a>
</div>

我在Firefox或Chrome上没有省略号。