300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > html css建站的文件夹 建站教程CMS建站DIV+CSS常用的Html网页布局代码汇集

html css建站的文件夹 建站教程CMS建站DIV+CSS常用的Html网页布局代码汇集

时间:2022-06-18 02:22:43

相关推荐

html css建站的文件夹 建站教程CMS建站DIV+CSS常用的Html网页布局代码汇集

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:

以下是引用片段:

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;margin-right: -100%;}

两行三列

xhtml:以下是引用片段:

这里是顶行 这里是第一列 这里是第二列 这里是第三列

CSS:

以下是引用片段:

#header{width: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:

以下是引用片段:

这里是顶行 这里是第一列 这里是第二列 这里是第三列 这里是底部一行

CSS:

以下是引用片段:

#header{width: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;}

#footer{width:100%; height:auto;}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。