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>
相关推荐
Python私教15 分钟前
Go语言现代web开发15 Mutex 互斥锁
开发语言·前端·golang
A阳俊yi16 分钟前
Vue(13)——router-link
前端·javascript·vue.js
好看资源平台29 分钟前
前端框架对比与选择:如何在现代Web开发中做出最佳决策
前端·前端框架
4triumph31 分钟前
Vue.js教程笔记
前端·vue.js
程序员大金1 小时前
基于SSM+Vue+MySQL的酒店管理系统
前端·vue.js·后端·mysql·spring·tomcat·mybatis
清灵xmf1 小时前
提前解锁 Vue 3.5 的新特性
前端·javascript·vue.js·vue3.5
Jiaberrr1 小时前
教你如何在微信小程序中轻松实现人脸识别功能
javascript·微信小程序·小程序·人脸识别·百度ai
白云~️1 小时前
监听html元素是否被删除,删除之后重新生成被删除的元素
前端·javascript·html
2401_864476931 小时前
无线领夹麦克风哪个降噪好?一文搞懂麦克风什么牌子的音质效果好
javascript·git·sql·github·mssql
金灰1 小时前
有关JS下隐藏的敏感信息
前端·网络·安全