Home >Web Front-end >HTML Tutorial >The problem of doubling the margin when setting up IE6

The problem of doubling the margin when setting up IE6

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-10-17 09:11:241064browse

Avoid using float and margin at the same time for child elements.

For example:

When you need the margin-bottom:20px of the child element, you can set padding-bottom:20px on the parent element instead.

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