CSS:图像 - 浮动:右边是在图像周围留下边框

时间:2013-09-07 11:59:22

标签: css

我试图让图像“贴”在右边,但它显示出某种不可见的边框。

enter image description here

我尝试添加的内容:

1) position: absolute;
2) border: 0; / border: 0px;
3) top: -5px; / I tried to put negative px, not even -1000px; has effect on it.

HTML:

<a href="#"><img class="float-right" src="img/FacebookImageLoading.jpg" /></a>

CSS:

.float-right{
 float:right;
 }

1 个答案:

答案 0 :(得分:4)

证明问题的jsFiddle会很方便,但在此期间,请尝试:

html, body
{
  padding: 0;
  margin: 0;
}
相关问题