Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第307天 怎么去除img之间存在的间隔缝隙? #1919

Open
haizhilin2013 opened this issue Feb 16, 2020 · 4 comments
Open

[html] 第307天 怎么去除img之间存在的间隔缝隙? #1919

haizhilin2013 opened this issue Feb 16, 2020 · 4 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第307天 怎么去除img之间存在的间隔缝隙?

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Feb 16, 2020
@aclowner
Copy link

1.修改display:block/flex,
2.父级设置font-size:0

@bocaiJs
Copy link

bocaiJs commented Mar 6, 2020

两个标签之间不要有空格啥的

@censek
Copy link

censek commented May 6, 2020

为图片的父元素设置:font-size: 0

@d4c-27
Copy link

d4c-27 commented Apr 13, 2022

1.display:block
2.img {vertical-align:top、middle、bottom;}
3.父元素font-size:0;
4.img {float:left;}
5.取消图片标签和其父对象的最后一个结束标签之间的空格
6.如果父对象的宽、高固定,图片大小随父对像而定,那么可以设置: overflow:hidden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

5 participants