底部魔术边距
谁能告诉我图片的边距/填充来自哪里? 它的底部多了 4px,我似乎找不到它来自哪里...... 不管我把它放在哪个 div 中,它总是在那里......
can anyone please tell me where the margin/padding in for the pictures come from?
it has on the bottom 4px extra and I can't seem to find where it is from ...
doesn't matter in what div I put it, it is always there...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您尝试将 float:left 添加到图像中,底部边距应该会消失。
If you try adding float:left to your images, the bottom margin should disappear.
它们都使用 css 中的
absolute
属性进行定位。这就是图像之间没有边距或填充的原因。在我看来,这是由页面上的 javascript 处理的。您应该查看处理马赛克的脚本/插件,并检查是否有选项可以更改它。
They are all positioned using
absolute
attributes in your css. That's why there is nomargin or padding between the images.This is, on my mind, handle by the javascript on the page. You should take a look on the script/plugin that handle your mosaic and check there is there is an option to change that.
您的
#content
的内联样式高度为578px:如果您调整高度,您将能够实现您想要的效果。
Your
#content
has an inline-style height of 578px:If you adjust the height, you will be able to achieve what you want.