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

WBOY
Release: 2016-06-24 11:41:24
Original
1349 people have browsed it

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. . .

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template