繁体   English   中英

如何从帖子图像中删除不需要的左边距/填充?

[英]How can I remove unwanted left margin/padding from post images?

我对整个HTML和CSS事情都很陌生,所以请提前为我的无知道歉! 我一直在尝试并且未能将我的帖子图片与我的博客上的文字对齐: http//kittenasacat.blogspot.ie/2013/08/saturday-sweetness-my-caramel-squares.html内容正文为600px宽我的照片也是如此,但它们略微缩进,因此它们的右侧被切掉了一点。 我成功地设法让其他一切排好,但不是这些!

.post{
  width:100%;
  height:auto;
  padding:0;
  margin:5px 0 30px;
  border-bottom:none;
}
.post-body{
  margin:0 0 .75em;
  line-height:1.6em;
  font-size:11px;
  font-family:Arial;
  text-align:justify;
}
.post h3{
  font-size:30px;
  margin:0;
  padding:5px 0;
  text-align:left;
  font-family:Yanone Kaffeesatz, sans-serif;
  text-transform:uppercase;
}
.post img{
  padding:0;
  min-width:600px;
}
.thumbs img{
  margin-left:0px;
}
.post-footer-line-1,.post-footer-line-2,post-footer-line-3,.post-footer{
  display:none;
}

我会说这可能是显而易见的事情,但它打败了我。 如果您需要更多信息,请与我们联系! 非常感谢您的帮助! (:

看着你的网站,我在图像周围找到了一个带有内联样式的标签:

<a href="[...]" style="margin-left: 1em; margin-right: 1em;">
    <img border="0" src="[...]">
</a>

因此,只删除内联样式也将删除边距:)

我认为这种风格设置是你的问题......

style =“margin-left:1em; margin-right:1em;”

当我关闭它们时,图像向右移动并且出现了切断部分。

style="margin-left: 1em; margin-right: 1em;" 可以固定为none 有关详细信息 ,请参阅帖子

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM