返回   CHF站长论坛 > 综合讨论区 > 网站开发与设计

网站开发与设计 网页设计、网站开发、网站维护与调试交流区。

斗地主梭哈 变态魔域 魔兽世界私服 魔兽世界私服 中国导航-提升网站流量和价值 天龙八部私服 传奇世界私服 新开传奇私服
热血江湖私服 魔兽世界私服 魔兽世界私服 诛仙私服 传奇外传私服 魔域私服 魔域私服
发表新主题 回复
 
主题工具 主题评分 显示模式
旧 2006-03-05, 14:21   #1 (页面定位)
Ulysses©
不学无术
 
Ulysses 的头像
 
注册日期: 2006-02-05
住址: 地狱18层
帖子: 7778
Ulysses 的声望功能已被禁用
默认 高级布局40例参考

针对五个模块的不同类型布局demo,基本上概括了所有需求,很有代表性。注意dtd为strict模式,编码是已改为utf。


个人觉得虽然实用有限,但作为技术参考,一定程度上总结了很多解决方案。
固定代码架构,分为五个部分 eader, content, navigation, other stuff and footer


HTML 代码:
<div id="container">
  <div id="header">Header</div>

  <div id="wrapper">
    <div id="content">Content</div>
  </div>
  <div id="navigation">Navigation</div>
  <div id="extra">Extra stuff</div>
  <div id="footer">Footer</div>
</div>

作者是意大利设计师,标题不好翻译,看示意图加例子就明白了。


Three percentage columns (n.01)
http://www.rexsong.com/blog/attachme...youtgala01.htm


Three percentage columns (n.02)
http://www.rexsong.com/blog/attachme...youtgala02.htm


Three percentage columns (n.03)
http://www.rexsong.com/blog/attachme...youtgala03.htm


Three percentage columns (n.04)
http://www.rexsong.com/blog/attachme...youtgala04.htm


Three percentage columns (n.05)
http://www.rexsong.com/blog/attachme...youtgala05.htm


Three percentage columns (n.06)
http://www.rexsong.com/blog/attachme...youtgala06.htm


Three fixed columns (n.7)
http://www.rexsong.com/blog/attachme...youtgala07.htm


Three fixed columns (n.8)
http://www.rexsong.com/blog/attachme...youtgala08.htm


Three fixed columns (n.9)
http://www.rexsong.com/blog/attachme...youtgala09.htm


Three fixed columns (n.10)
http://www.rexsong.com/blog/attachme...youtgala10.htm


Three fixed columns (n.11)
http://www.rexsong.com/blog/attachme...youtgala11.htm


Three fixed columns (n.12)
http://www.rexsong.com/blog/attachme...youtgala12.htm


Liquid, secondary columns fixed-width (n.13)
http://www.rexsong.com/blog/attachme...youtgala13.htm


Liquid, secondary columns fixed-width (n.14)
http://www.rexsong.com/blog/attachme...youtgala14.htm


Liquid, secondary columns fixed-width (n.15)
http://www.rexsong.com/blog/attachme...youtgala15.htm


Liquid, secondary columns fixed-width (n.16)
http://www.rexsong.com/blog/attachme...youtgala16.htm


Liquid, secondary columns fixed-width (n.17)
http://www.rexsong.com/blog/attachme...youtgala17.htm


Liquid, secondary columns fixed-width (n.18)
http://www.rexsong.com/blog/attachme...youtgala18.htm


Liquid, three columns, hybrid widths (n.19)
http://www.rexsong.com/blog/attachme...youtgala19.htm


Liquid, three columns, hybrid widths (n.20)
http://www.rexsong.com/blog/attachme...youtgala20.htm


Liquid, three columns, hybrid widths (n.21)
http://www.rexsong.com/blog/attachme...youtgala21.htm


Liquid, three columns, hybrid widths (n.22)
http://www.rexsong.com/blog/attachme...youtgala22.htm


Two columns liquid, side fixed (n.23)
http://www.rexsong.com/blog/attachme...youtgala23.htm


Two columns liquid, side fixed (n.24)
http://www.rexsong.com/blog/attachme...youtgala24.htm


Two percentage columns (n.25)
http://www.rexsong.com/blog/attachme...youtgala25.htm


Two percentage columns (n.26)
http://www.rexsong.com/blog/attachme...youtgala26.htm


One column liquid and two halves (n.27)
http://www.rexsong.com/blog/attachme...youtgala27.htm


One column liquid and two halves (n.28)
http://www.rexsong.com/blog/attachme...youtgala28.htm


Two percentage columns and one larger (n.29)
http://www.rexsong.com/blog/attachme...youtgala29.htm


Two percentage columns and one larger (n.30)
http://www.rexsong.com/blog/attachme...youtgala30.htm


Two columns liquid, fixed side and large one (n.31)
http://www.rexsong.com/blog/attachme...youtgala31.htm


Two columns liquid, fixed side and large one (n.32)
http://www.rexsong.com/blog/attachme...youtgala32.htm


Two colums fixed (n.33)
http://www.rexsong.com/blog/attachme...youtgala33.htm


Two colums fixed (n.34)
http://www.rexsong.com/blog/attachme...youtgala34.htm


Two colums fixed (n.35)
http://www.rexsong.com/blog/attachme...youtgala35.htm


Two colums fixed (n.36)
http://www.rexsong.com/blog/attachme...youtgala36.htm


Two colums fixed (n.37)
http://www.rexsong.com/blog/attachme...youtgala37.htm


Two colums fixed (n.38)
http://www.rexsong.com/blog/attachme...youtgala38.htm


One column fixed and two halves (n.39)
http://www.rexsong.com/blog/attachme...youtgala39.htm


One column fixed and two halves (n.40)
http://www.rexsong.com/blog/attachme...youtgala40.htm

兼容 Internet Explorer/win 5.0, 5.5, 6 and beta 2 preview of version 7; Opera 8.5, Firefox 1.5 and Safari 2

Referrence:
a collection of 40 CSS layouts based on the same markup and ready for download! http://blog.html.it/layoutgala/

==========================================
来源:http://www.rexsong.com/blog/article.asp?id=287 (一叶千鸟)

此帖于 2006-03-05 14:41 被 Ulysses 编辑.
Ulysses 当前离线   回复时引用此帖
旧 2006-03-06, 01:15   #2 (页面定位)
hopol
 
hopol 的头像
 
注册日期: 2005-09-26
帖子: 140
hopol 是普普通通的会员
默认



不得不回复 谢谢 !!! 学习 css 的好东西 !!!


引用:
手机电影 mobi0.com

hopol 当前离线   回复时引用此帖
旧 2006-03-07, 19:16   #3 (页面定位)
east
 
注册日期: 2006-03-07
帖子: 13
east 是普普通通的会员
默认

不错~
east 当前离线   回复时引用此帖
旧 2006-03-08, 01:42   #4 (页面定位)
rockguitar
 
rockguitar 的头像
 
注册日期: 2006-02-03
帖子: 990
rockguitar 是普普通通的会员
默认



老鬼还欠我一件Ts
下面是偶滴垃圾站,正经站一般人偶不告诉他
爱尔兰
广土安逸
一个人的sns
rockguitar 当前离线   回复时引用此帖
旧 2006-03-10, 13:02   #5 (页面定位)
风中的承诺
 
风中的承诺 的头像
 
注册日期: 2006-03-10
住址: 北京
帖子: 2
风中的承诺 是普普通通的会员
默认

不错 收藏了



快乐地活着,呼吸每天的新鲜
风中的承诺 当前离线   回复时引用此帖
旧 2006-03-11, 14:57   #6 (页面定位)
zhangshan1
 
注册日期: 2006-03-10
帖子: 15
zhangshan1 是普普通通的会员
默认 感谢

感谢
zhangshan1 当前离线   回复时引用此帖
旧 2006-03-12, 04:42   #7 (页面定位)
小四
 
小四 的头像
 
注册日期: 2005-09-08
帖子: 82
小四 是普普通通的会员
默认

整个放在一个div好么?
我都是象处理table一样处理div,最多每行一个。
有时候甚至行都不用div包起来
http://zf.foxso.net/div/divtest.htm
前几天做的,也是我第一次用div+css布局。
中间草草的做了一下,没有修饰。
将就过了XHTML 1.0 Strict 和css得校验。
不过理念上应该还是不对吧。
还要好好象意大利大师学习。


引用:
zForums论坛程序v5.0发布咯....(Asp.NET+SQL):http://www.zFans.net 招美工入伙。
ZFORUMS团队成员:小四……
小四 当前离线   回复时引用此帖
旧 2006-03-12, 10:08   #8 (页面定位)
sluke©
 
sluke 的头像
 
注册日期: 2005-09-04
住址: 任天堂
帖子: 4322
sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星sluke 即将成为的新星
默认

不错,收藏


PHP 代码:
<?php 
echo '为什么我的帖子都是灌水,因为我对这论坛爱得深沉。';
?>
.
sluke 当前离线   回复时引用此帖
回复

书签

标签

主题工具
显示模式 对此主题评分
对此主题评分:



所有时间均为北京时间。现在的时间是 07:31