0
我有一些图像上的几个链接。代码非常简单如下:图像链接显示小artefact
<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;
}
结果是这样的:
正如你所看到的,底部是一个小的紫色省略号,它是一个指向脸书的链接。我敢肯定,我在这里是一个非常简单明显的事情,但我该如何摆脱?
也许这是图像本身有紫色人造物?尝试在油漆或其他东西中打开它们并检查下角? – Michael0x2a
不仅仅是标签中的空格字符?尝试设置文字修饰:无;在a上。 – Johan
当然不是在图像上,我自己做的! :P但是在'a'标签中有一个简单的额外空间。呸! – anothershrubery