Chinaunix首页 | 论坛 | 博客
  • 博客访问: 96127
  • 博文数量: 34
  • 博客积分: 925
  • 博客等级: 准尉
  • 技术积分: 350
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-15 11:52
文章分类

全部博文(34)

文章存档

2011年(34)

我的朋友

分类: 系统运维

2011-08-18 14:25:01

CSS Float

The CSS float property enables you to determine where to position an element relative to the other elements on the page. When you use the float property, other elements will simply wrap around the element you applied the float to.

Example code:

  1. <div style="width:300px;">
  2. <h1 style="float:left;margin-right:10px;">CSS float</h1>
  3. <p>If your browser supports the CSS float Property, this text will be flowing around the heading.
  4. If this does not seem to work, it could be a browser compatibility thing...</p>
  5. </div>
This results in:

阅读(315) | 评论(0) | 转发(0) |
0

上一篇:CSS Positioning

下一篇:CSS Layers

给主人留下些什么吧!~~