问个关于浮动的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:18:01
Original
1060 people have browsed it

小白弱弱的问个问题,是不是文档流元素会环绕浮动元素布局。


回复讨论(解决方案)

并不是文档流元素环绕浮动元素,而是文字会环绕浮动元素。说到这里顺便提一句:浮动效果最初就是为了文字环绕而设计的,因此浮动元素不会遮挡文字。

默认文档就是水
float元素就是 水里的一块石头

谢谢了,懂了。

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