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