Home > Web Front-end > HTML Tutorial > I don't understand this code_html/css_WEB-ITnose

I don't understand this code_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:19:26
Original
954 people have browsed it

div

I don’t understand this set of codes

Reply to discussion (solution)

Your above understanding is correct, but you ignore it A little difference (the body element and the margins of the second div b are merged), which makes the top margin of b outside the content of the body, while a is a floating element and the margins will not overlap, and all a is entirely inside the body ( (As long as there are no size restrictions on the body), that’s all

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