示例:DIV页面布局(margin-left方法)
顶部中间左边中间右边
底部代码:
<STYLE type=text/css><!--#top,#left,#right,#bottom{background:#CCCCCC;height:120px;}#top,#index,#bottom/*页面上、中、下层宽度定义*/{clear:both;width:778px;margin:4px;margin-left:auto;/*页面中上、中、下居中*/margin-right:auto;}#left{float:left;width:200px;}#right{margin-left:200px;}--></STYLE><div id=top>顶部</div><div id=index><div id=left>中间左边</div><div id=right>中间右边</div></div><div id=bottom>底部</div>
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18