Home >Web Front-end >HTML Tutorial >There is a gap between the top and bottom of the picture in the DIV_html/css_WEB-ITnose

There is a gap between the top and bottom of the picture in the DIV_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:241363browse

After placing several pictures in the DIV, there will be a gap between the top and bottom. It is no problem in Firefox and Google, but a white gap will appear in IE8.
Setting padding.margin.border to 0 is useless, and unifying float is useless. What is the problem?


Reply to discussion (solution)

Remove extra spaces, especially between img

padding:0;margin:0 ; Try

Try the method of the two people above and check the elements in the browser to see if these settings are parsed.

Try it. . . There should be no extra spaces or line breaks between images. . . Like below. . . Image tags are next to each other. . .

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn