首页 > Web开发 > 详细

【CSS】Intermediate8:Page Layout

时间:2014-04-13 15:21:21      阅读:489      评论:0      收藏:0      [点我收藏+]

1.Layout with CSS is easy. You just take a chunk of your page and shove it wherever you choose

 

2.position property

 

3.static value

renders a box in the normal order of things

 

4.relative

much like static but the box can be offset from its original position

top/right/bottom/left properties

 

5.absolute

pulls a box out of normal flow of HTML  & delivers it to a world all of its own

t/r/b/l

 

6.fixed

like absolute but reference to the browser window as opposed to the web page

Fixed boxes should stay exactly where they are on the screen even when the page is scrolled

bubuko.com,布布扣

How stupidly easy!

 

7.float

Shift the box to the right or left of a line,with surrounding content flowing around it

l/r value

bubuko.com,布布扣

8.clear

do not want the next box to wrap around the floating objects

l/r/both value

bubuko.com,布布扣

Footer!Hoorah!

 

【CSS】Intermediate8:Page Layout,布布扣,bubuko.com

【CSS】Intermediate8:Page Layout

原文:http://www.cnblogs.com/yzhen/p/3660056.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!