提供一则DIVCSS的网页布局代码.doc

上传人:自*** 文档编号:126896053 上传时间:2020-03-28 格式:DOC 页数:3 大小:42.45KB
返回 下载 相关 举报
提供一则DIVCSS的网页布局代码.doc_第1页
第1页 / 共3页
提供一则DIVCSS的网页布局代码.doc_第2页
第2页 / 共3页
提供一则DIVCSS的网页布局代码.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《提供一则DIVCSS的网页布局代码.doc》由会员分享,可在线阅读,更多相关《提供一则DIVCSS的网页布局代码.doc(3页珍藏版)》请在金锄头文库上搜索。

1、单行一列以下是引用片段:body margin: 0px; padding: 0px; text-align: center; #content margin-left:auto; margin-right:auto; width: 400px; width: 370px; 两行一列以下是引用片段:body margin: 0px; padding: 0px; text-align: center;#content-top margin-left:auto; margin-right:auto; width: 400px; width: 370px;#content-end margin-le

2、ft:auto; margin-right:auto; width: 400px; width: 370px;三行一列以下是引用片段:body margin: 0px; padding: 0px; text-align: center; #content-top margin-left:auto; margin-right:auto; width: 400px; width: 370px; #content-mid margin-left:auto; margin-right:auto; width: 400px; width: 370px; #content-end margin-left:

3、auto; margin-right:auto; width: 400px; width: 370px; 单行两列以下是引用片段:#bodycenter width: 700px;margin-right: auto; margin-left: auto;overflow: auto; #bodycenter #dv1 float: left;width: 280px;#bodycenter #dv2 float: right;width: 410px;两行两列以下是引用片段:#header width: 700px; margin-right: auto;margin-left: auto;

4、 overflow: auto;#bodycenter width: 700px; margin-right: auto; margin-left: auto; overflow: auto; #bodycenter #dv1 float: left; width: 280px;#bodycenter #dv2 float: right;width: 410px;三行两列以下是引用片段:#header width: 700px;margin-right: auto; margin-left: auto; #bodycenter width: 700px; margin-right: auto;

5、 margin-left: auto; #bodycenter #dv1 float: left;width: 280px;#bodycenter #dv2 float: right; width: 410px;#footer width: 700px; margin-right: auto; margin-left: auto; overflow: auto; 单行三列绝对定位以下是引用片段:#left position: absolute; top: 0px; left: 0px; width: 120px; #middle margin: 20px 190px 20px 190px; #

6、right position: absolute;top: 0px; right: 0px; width: 120px;float定位一xhtml:以下是引用片段:这里是第一列这里是第二列这里是第三列CSS:以下是引用片段:#wrap width:100%; height:auto;#column float:left; width:60%;#column1 float:left; width:30%;#column2 float:right; width:30%;#column3 float:right; width:40%;.clear clear:both;float定位二xhtml:以

7、下是引用片段:This is the main content.This is the left sidebar.This is the right sidebar.CSS:以下是引用片段:body margin: 0;padding-left: 200px;padding-right: 190px;min-width: 240px;.column position: relative;float: left;#center width: 100%;#left width: 180px; right: 240px;margin-left: -100%;#right width: 130px;m

8、argin-right: -100%;两行三列xhtml:以下是引用片段:这里是顶行这里是第一列这里是第二列这里是第三列CSS:以下是引用片段:#headerwidth:100%; height:auto;#wrap width:100%; height:auto;#column float:left; width:60%;#column1 float:left; width:30%;#column2 float:right; width:30%;#column3 float:right; width:40%;.clear clear:both;三行三列xhtml:以下是引用片段:这里是顶行这

9、里是第一列这里是第二列这里是第三列这里是底部一行CSS:以下是引用片段:#headerwidth:100%; height:auto;#wrap width:100%; height:auto;#column float:left; width:60%;#column1 float:left; width:30%;#column2 float:right; width:30%;#column3 float:right; width:40%;.clear clear:both;#footerwidth:100%; height:auto;PS:这里列出的是常用的例子,而非研究之用,对一每个盒子,都没有设置margin,padding,boeder等属性!

展开阅读全文
相关资源
相关搜索

当前位置:首页 > IT计算机/网络 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号