CSS div float
来源:互联网 发布:微观经济数据 编辑:程序博客网 时间:2024/06/10 14:31
CSS float属性 CSS div float
The float property sets where an image or a text will appear in another element.
float属性可设置在另一个元素中的图片或是一段文字在哪出现。
Note: If there is too little space on a line for the floating element, it will jump down on the next line, and continue until a line has enough space.
注意:如果在一行空间上的浮动元素过多,超出了空间的容纳范围,它就会自动跳到下一行中,直到一行有足够的空间容纳它。
Note: Content, background, and borders of inline elements should go in front of the float. Background and borders of a block element should go behind the float, but the content of the block element should go in front of the float.
注意:在inline元素中的内容,背景以及边框会在浮动层的上面。block元素的背景边框则会在浮动层的下面,而内容会在其上面。
Inherited: No
继承性:无
Example
举例
img
{
float: left
}
Possible Values
可能用到的值
Value
描述
left
The image or text moves to the left in the parent element
图片或是文字移动到父层的左边
right
The image or text moves to the right in the parent element
图片或是文字移动到父层的右边
none
The image or the text will be displayed just where it occurs in the text
图片或是文字回到它本应该出现的位置
- CSS div float
- DIV+CSS之float
- CSS+DIV float 定位
- CSS备忘录(Float,Position,Div,inline)
- div+css经验:float命令详解
- 关于div--css-float的感想
- DIV + CSS浮动属性Float详解
- 初学css+div问题,float定位问题
- DIV+CSS基础教程:浮动(float)页面布局
- div css float浮动用法(left right)
- div css float浮动用法(left right)
- div css float浮动用法(left right)
- 经验分享:CSS div浮动(float,clear)
- div css float浮动用法(left right)
- div css float浮动用法(left right)
- DIV CSS布局:CSS浮动float属性详解
- CSS div float IE和FireFox的兼容性问题
- div+css网页布局教程(1):float属性介绍
- 使用Java RTP传输声音和视频的程序(绝对经典)
- Eclipse SVN plugin安装
- 4.6 界面友好的启动程序(一)
- Can the msgbox vbYesNo button captions be changed in VBA?
- User Interface Freeze Milestone
- CSS div float
- 验证码 完整代码
- xml read check
- 软件本地化编译原理与方法
- 一种Struts国际化处理的思路
- prjClearCMOS(prjClearBIOSPassword)- 破BIOS密码 - 清除CMOS - PC汇编 - Written by HackerJLY In Universty
- HashMyFiles v1.10
- 忆Java基础知识之——Java语言介绍与运算符和流程
- 毕业一年后之自我总结