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

多个img标签排列会出现间隙? #25

Closed
Hassan-bai opened this issue Sep 11, 2019 · 2 comments
Closed

多个img标签排列会出现间隙? #25

Hassan-bai opened this issue Sep 11, 2019 · 2 comments
Labels
question Further information is requested

Comments

@Hassan-bai
Copy link

Hassan-bai commented Sep 11, 2019

多个img标签默认会有间隙。怎么去掉?
例如:

<div>
    <img src='' />
    <img src='' />
    <img src='' />
    <img src='' />
</div>

或者:

<div>
    <img src='' />
</div>
<div>
    <img src='' />
</div>
<div>
    <img src='' />
</div>
<div>
    <img src='' />
</div>
@jin-yufeng
Copy link
Owner

给img设置display:block或者float:left就行了

@Hassan-bai
Copy link
Author

给IMG设置显示:块或者浮动:左就行了

好的,了解,多谢。

@jin-yufeng jin-yufeng added the question Further information is requested label Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants