HTML 灵活处理网页框架

html 复制代码
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			body{
				background-color: #FF9900;
			}
		 #d1{
		 	width: 90%;
		 	height: 50px;
		 	 
		 	background-color: #8B0000;
		 	margin: 0px auto;
		 	text-align: center;
		 }
		 
		 #d2{
		 	width: 100%;
		 	height: 400px;
		 	 
		 	background-color: #00008B;
		 	margin: 0px auto;
		 	text-align: center;
		 }
		 
		 #d3{
		 	width: 100%;
		 	height: 400px;
		 	 
		 	background-color: #00BFFF;
		 	margin: 0px auto;
		 	text-align: center;
		 }
		 	#d4{
		 	width: 30%;
		 	height: 400px;		 	 
		 	background-color: #C0C6CB;
		 	margin: 0px auto;
		 	text-align: center;
		 	float:left;
		 }
		 
		 #d5{
		 	width: 65%;
		 	height: 400px;
		 	border: solid 10px red;	
		 	box-sizing: border-box;	 	 
		 	background-color: #C0C6CB;
		 	margin: 0px;
		 	text-align: center;
		 	float:left;
		 }
		 
		  #d6{
		 	width: 60%;
		 	height: 60%;
		 	
		 	box-sizing: border-box;	 	 
		 	background-color: #008000;
		 	margin: 0px;
		 	text-align: center;
		 	float:left;
		 }
		 
		 #d7{
		 	width: 39%;
		 	height: 60%;
		 	margin: 10px 0 0 0;
		 	box-sizing: border-box;	 	 
		 	background-color: #8B0000;
		 	margin: 0px;
		 	text-align: center;
		 	float:right;
		 }
		 
		 #d8{
		 	width: 100%;
		 	height: 34%;		 	
		 	box-sizing: border-box;	 	 
		 	background-color: #87CEEB;
		 	margin: 10px 0px;		 	
		 	text-align: center;
		 	float:right;
		 }
		 #d9{
		 	width: 100%;
		 	height: 50px;
		 	background-color: #008000;
		 	text-align: center;
		 		
		 }
			
		</style>
	</head>
	<body>
		 <div id=d1>
		 	导航
		 </div>
		 
		 <div id=d2>
		 	广告
		 </div>
		 <div id=d3>
		 	<div id=d4>	
		 		左盒
		 	</div>
			 <div id=d5>
				 <div id=d6>新闻</div>
				 <div id=d7>搜索</div>
				 <div id=d8>案例展示</div>
			 </div>
		 </div>
		 <div id=d9>尾部</div>
	</body>
</html>
相关推荐
因吹斯汀1 小时前
一饭封神:当AI厨神遇上你的冰箱,八大菜系大师在线battle!
前端·vue.js·ai编程
心一信息1 小时前
ThreeJS骨骼示例
css·css3·html5
再学一点就睡1 小时前
NATAPP 内网穿透指南:让本地项目轻松 “走出去”
前端
拜无忧1 小时前
2025最新React项目架构指南:从零到一,为前端小白打造
前端·react.js·typescript
稻草人不怕疼1 小时前
记一次从“按钮点不动”到“窗口派发缺失”的排查过程
前端
irving同学462381 小时前
TypeORM 列装饰器完整总结
前端·后端·nestjs
彭于晏爱编程1 小时前
你真的了解 Map、Set 嘛
前端
崔璨1 小时前
详解Vue3的响应式系统
前端·vue.js
摸鱼的鱼lv1 小时前
🔥 Vue.js组件通信全攻略:从父子传值到全局状态管理,一篇搞定所有场景!🚀
前端·vue.js
IT_陈寒1 小时前
Java性能优化:10个让你的Spring Boot应用提速300%的隐藏技巧
前端·人工智能·后端