CSS clear清除浮动_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:16:12
Original
916 people have browsed it

1、CSS中的clear有四个参数:

  none:允许两边都可以浮动。

left:不允许左边有浮动。

right:不允许右边有浮动。

both(默认);不允许有浮动。

2、一开始在CSS中clear浮动是默认both,也就是说一开始不能有浮动的。

3、使用的案例:假设我清除第三个DIV的浮动









效果:

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
Latest Issues
After the content's padding is removed, the shopping cart area is still the same as when the padding was not removed. What's wrong? Looking for an error but can't find it?