网站制作9个永恒的3列布局技术

2014-10-10    分类: 网站制作

网站制作9个永恒的3列布局技术
成都网站建设的目标是找到一个布局,具有总的布局灵活性,相等的高度柱,只是做工精细。让Digg深,见下面的资源列表提供华丽而有效的3柱基于CSS的布局通常有充分的布局结构,如标题、导航栏、内容的容器,侧边栏和页脚。

网站制作9个永恒的3列布局技术

1.#leftcontent {
position: absolute;
left:10px;
top:50px;
width:200px;
}
2.#centercontent {
margin-left: 199px;
margin-right:199px;
margin-left: 201px;
margin-right:201px;
}
html>body #centercontent {
margin-left: 201px;
margin-right:201px;
}
3.#rightcontent {
position: absolute;
right:10px;
top:50px;
width:200px;
}

2)3列流体CSS布局-与人造列和100%高度
1.#left { float: left; width: 155px; padding: 5px; position: relative;/*** IE needs this ***/ }
2.#right { float: right; width: 110px; padding: 5px; position: relative;
/*** IE needs this ***/ margin-right: -120px; /** This negative margin-right value is the same as the right column width (width + padding). ***/ position: relative; /*** IE needs this ***/ }
3.#content { float: right; margin-right: -165px;/*** Same length as .outer padding-left but with negative value ***/ width: 100%; position: relative;/*** IE needs this ***/ }

3)3-col通过CSS布局
没有表,没有绝对定位(根本没有定位),没有黑客(!)所有列的高度相同。
1.#left { float:left; width:150px; margin:0; padding:0; background:url("corner.gif") top right no-repeat; font-size:80%; }
2.#right { float:right; width:150px; margin:0; padding:0; background:url("corner.gif") top right no-repeat; font-size:80%; }
3.#middle { margin:0 150px; background:yellow; font-size:80%; }

4)3列-侧翼菜单
三列,元素的智能顺序。

5)多列布局爬出盒子
这是列表之外的文章的一部分,这三列的布局以一种稍微不同的方法:边界是直接应用于集装箱部

1.#container{ background-color:#0ff; float:left; width:500px; border-left:150px solid #0f0; » /* The width and color of the left rail */ border-right:200px solid #f00; » /* The width and color of the right rail */ }
2.#leftRail{ float:left; width:150px; margin-left:-150px; position:relative; }
3.#center{ float:left; width:500px; margin-right:-500px; }
4.#rightRail{ float:right; width:200px; margin-right:-200px; position:relative; }


6)LayoutGala的3个固定柱
1.div#container {width:700px;margin:0 auto}
2.div#wrapper {float:left;width:100%}
3.div#content {margin-right: 300px}
4.div#navigation {float:left;width:150px;margin-left:-150px}
5.div#extra {float:left;width:150px;margin-left:-300px}
6.

7)3固定搜索引擎优化
1.#page_margins {width: 980px; min-width: 980px; max-width:none }
2.#main { float:left; width: 100%; background-color: transparent; background-image: url(../../images/bg_pattern.png); background-repeat:repeat-y; background-position:left; }
3.#col1 { width: 480px; float:left; margin-left: 240px; }
4.#col2 { width: 240px; float:left; margin-left: -720px; }
5.#col3 { margin-left: -5px; margin-right: 0; width: 240px; float:right;}


(8)一个真正的布局
1.#block_1 { float: left; width: 34%; margin-left: 33%; }
2.#block_2 { float: left; width: 33%; margin-left: -67%; }
3.#block_3 { float: left; width: 33%; }


9)马克斯设计-液体疯狂
一个很好的液体例子,可以用来做报纸一样的布局。
必须检查布局银行

CSS布局- 950像素-简化您的CSS设计与这些简单的纯CSS布局
threecolumnlayouts–CSS讨论收集了一吨的3栏布局和各迅速总结,即流体/固定,页眉/页脚!

网站名称:网站制作9个永恒的3列布局技术
网站地址:https://www.cdcxhl.com/news/20394.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有网站设计网站制作

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

网站建设网站维护公司