如何解释CSS浮点在一般语言? [英] How to explain CSS Float in general language?

查看:145
本文介绍了如何解释CSS浮点在一般语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解释CSS浮动的一般语言(不是编程)?有没有什么现实生活的例子来举一个例子来解释CSS浮点?

How to explain CSS Float in general language (not Programming) ? Is there any real life example to take a example to explain CSS Float?

有很简单的解释float的幻灯片吗?

Is there any Slideshow in very simple way to explain float?

推荐答案

解释它就像它的声音:)

Explain it exactly like it sounds :)

它被称为float因为一个元素一艘船。考虑其余的内容水和物体的船...物体取代一定量的空间,水(其他内容)包裹在它周围。在这几次,我不得不传达这个属性的意思,这是解释,得到它。

It's called float because an element "floats" like a boat does. Consider the rest of the content water and the object a boat...the object displaces a certain amount of space and the water (other content) wraps around it. In the few times I've had to convey this property's meaning, this was the explanation that "got it across".

这不包括跨浏览器的怪癖像IE浮动,但对于一般的解释,它的工作原理。对于完成说明,我仍然认为这是最好的资源: CSS浮动的简单教程

That doesn't cover the cross-browser quirks like IE floats, but for a general explanation, it works. For a complete explanation, I still think this is the best resource out there: simple tutorials on CSS floats.

这篇关于如何解释CSS浮点在一般语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆