CSS经典基础布局,自适应高度。header,content,footer.

CSS经典基础布局,自适应高度。header,content,footer.,第1张

概述CSS经典基础布局,自适应高度。header,content,footer.

下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。

内存溢出小编现在分享给大家,也给大家做个参考。

<!DOCTYPE HTML><HTML lang="en"> <head>  <Meta charset="UTF-8">  <Meta name="Generator" content="EditPlus®">  <Meta name="Author" content="">  <Meta name="keywords" content="布局,高度,基础,经典">  <Meta name="description" content="                    概述CSS经典基础布局,自适应高度。header,content,footer.                        下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。内存溢出小编">  <style text="text/CSS">  /**  布局  */  body {  margin:0px;  }      #container {        wIDth:100%;        margin:0 auto;/*主面板div居中*/		border:1px solID red;    }	    #header {        wIDth:100%;        float:left;        clear:both;	        border:1px #F00 solID;    }	#header_left {        wIDth:50%;        border:1px #F00 solID;		float:left;    }	#header_right {        wIDth:49%;        border:1px #F00 solID;		float:right;    }	  #main {        wIDth:100%;        float:left;        clear:both;	        border:1px #F00 solID;    } 	#main_content{		 wIDth:100%;		border:1px solID blue;	}		 #footer {        wIDth:100%;        float:left;        clear:both;	        border:1px #F00 solID;    }  </style>  <Title>document</Title> </head> <body>     <div ID="container">            <div ID="header">				<div ID="header_left">					头部左侧				</div>				<div ID="header_right">					头部右侧				</div>			</div>            <div ID="main">				<div ID="main_content">							主页内容				</div>			</div>            <div ID="footer">底部(footer)</div>    </div> </body></HTML>

以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

总结

以上是内存溢出为你收集整理的CSS经典基础布局,自适应高度。header,content,footer.全部内容,希望文章能够帮你解决CSS经典基础布局,自适应高度。header,content,footer.所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1097939.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存