img和间距 [英] img and spacing
本文介绍了img和间距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建一个标签行,但我使用的图片标签距离太远。选项卡位于div标签之间,并已分配了一个类。在CSS文件中,我删除了填充,边距,显示是内联的。除了在img上设置位置之外,我还能做些什么来消除标签之间的空间?
谢谢,
Leo
I am trying to create a tab row, but the image tags that I am using are spaced too far apart. The tabs are between a div tag, and have been assigned a class. In the CSS file I have removed padding, margins, display is inline. Other than setting the position on the img itself, what else can I do remove the space between the tabs?
Thanks,
Leo
推荐答案
我正在尝试创建一个标签行,但我使用的图像标签距离太远。选项卡位于div标签之间,并已分配了一个类。在CSS文件中,我删除了填充,边距,显示是内联的。除了在img上设置位置之外,我还能做些什么来消除标签之间的空间?
谢谢,
Leo
I am trying to create a tab row, but the image tags that I am using are spaced too far apart. The tabs are between a div tag, and have been assigned a class. In the CSS file I have removed padding, margins, display is inline. Other than setting the position on the img itself, what else can I do remove the space between the tabs?
Thanks,
Leo
可以用
maybe start your css with
展开 | 选择 | Wrap | 行号
我使用了列对于我的标签。我把所有的标签都做了相同的大小。
然后我制作了一个500像素的桌子,上面有我的标签数量。
所以,如果我有6个标签我分了6个进入500然后我div中心。
nomad
I used columns for my tabs. I made all the tabs the same sized.
Then I made a table at 500 pixels with the number of tabs I had.
So if I had 6 tabs I divided 6 into 500 then I div center.
nomad
当我不使用图像标签时,这些建议有效。问题是图像标签在图像之间留下大约3到4个像素的空间。我对图像做的很少,我想知道是否可以删除这个空间。当我使用锚点,按钮,div标签甚至表格时,空间不存在。它似乎只与图像有关。就像图像上有一个内置填充。是否有特定的PNG图像需要查看?
谢谢,
Leo
These suggestions work when I am not using an image tag. The problem is that the image tag is leaving about 3 to 4 pixels space between the images. I have done very little with images, and I would like to know if removing this space is possible. The space is not there when I am using anchors, buttons, div tags, or even tables. It appears something related to images only. Like there is a built in padding on the images. Is there something specific with PNG images that need to be looked at?
Thanks,
Leo
这篇关于img和间距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文