CSS below the picture with 4px gap solution

The first method: the set img display: block;

The second method is provided img parent element font-size: 0px;

The third method: Set img float, if you are the parent element img hold up to this time will lead to, not the height of the parent element, the parent element can be added to absolute positioning;

Guess you like

Origin blog.csdn.net/github_38108899/article/details/87977903