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>
相关推荐
开发者小天14 分钟前
为什么 /deep/ 现在不推荐使用?
前端·javascript·node.js
如白驹过隙1 小时前
cloudflare缓存配置
前端·缓存
excel1 小时前
JavaScript 异步编程全解析:Promise、Async/Await 与进阶技巧
前端
Jerry说前后端1 小时前
Android 组件封装实践:从解耦到架构演进
android·前端·架构
步行cgn2 小时前
在 HTML 表单中,name 和 value 属性在 GET 和 POST 请求中的对应关系如下:
前端·hive·html
hrrrrb2 小时前
【Java Web 快速入门】十一、Spring Boot 原理
java·前端·spring boot
找不到工作的菜鸟2 小时前
Three.js三大组件:场景(Scene)、相机(Camera)、渲染器(Renderer)
前端·javascript·html
定栓2 小时前
vue3入门-v-model、ref和reactive讲解
前端·javascript·vue.js
专注API从业者2 小时前
基于 Flink 的淘宝实时数据管道设计:商品详情流式处理与异构存储
大数据·前端·数据库·数据挖掘·flink
龙在天2 小时前
H5开发,开发照相机,以及组件封装
前端