html的网页制作代码分享

复制代码
<!--  prj_8_2.html  -->
<!DOCTYPE html>
<html  lang  ="EN">
	<head>
		<meta   charset="utf-8" />
		<title>页面布局设计</title>
		<style type ="text/css">
			*{
				padding: 0px;
				margin:0px;
				}
			#header{
				background: url('prj_8_2_logo.png') #4B5B6B   no-repeat  top  left;
				width:100%;
				height:60px;
			}
			#nav{
				width:100%;
				height:80px;
			}
			ul{
				list-style-type: none;
				width:100%;
				height:80px;
				background:#D0C0B0;
				text-align:center;
			}
			li{
				font-size:20px;
				padding:20px 10px;
				display: inline-block;
				width: 160px;
				height: 40px;
				
			}
			
			a:active,
			a:link,
			a:visited{
				text-decoration: none;
				
			}
			a:hover{
				background: #CCFF99;
				height: 80px;
				width:160px;
				padding:20px 10px;
				}
			#main{
				width:100%;
				height:500px;
				background: #FEFEFE
			}
			#article{
				width:75%;
				height: 500px;
				background: #DBDACA;
				float: left;
			
			}
			.section{
				width: 320px;
				height:440px;
				float:left;
				border:1px  dashed   #006600;
				text-align: middle;
				margin: 20px;
			}
			
			img{
				width: 300px;
				height: 400px;
				margin: 10px;
				
			}
			#aside{
				width:20%;
				height: 500px;
				background: #9F9F9A;
				float: right;
				text-align: center;
				vertical-align: middle;
			}
			#footer{
				clear: both;
				width:100%;
				height:80px;
				background: #EAEADA;
				padding:20px auto;
				text-align: center;
			}
			
			#footer p{
				font-size: 20px;
				padding-top: 25px;
				height:25px;
			}
			
			
		</style>
	</head>
	<body>
		<header  id="header"></header>
		<nav id="nav">
			
			<ul>
				<li>
					<a herf="#">首页</a>
				</li>
				<li>
					<a herf="#">HTML5  </a>
				</li>
				<li>
					<a herf="#">CSS3</a>
				</li>
				<li>
					<a herf="#">JavaScript</a>
				</li>
				<li>
					<a herf="#">DOM</a>
				</li>
				<li>
					<a herf="#">BOM</a>
				</li>
			</ul>
		</nav>
		<div  id="main">
			<article id="article">
				<section   calss="section">
					<img  src="img/prj_8_2_html5_logo.png">
				</section>
				<section class="section">
					
					<img  src="img/prj_8_2_css3_logo.png">
				</section>
				<section class="section">
					
					<img  src="img/prj_8_2_javascript_logo.png"/>
				</section>
			</article>
			<aside  id="aside">
				<figure>
					<img  src="img/prj_8_2_html5.png">
					<figcaption>HTML5结构元素侧边aside</figcaption>
				</figure>
			</aside>
		</div>
		<footer id="footer">
		<p>
			Copyright &copy;2017-2020 Web  前端开发工作室-  业务开发-网站建设
		</p>
		</footer>
	</body>
</html>

相关推荐
deli0072 小时前
锁过期了业务还没跑完:SETNX 分布式锁 1000 次并发实测
前端
不一样的少年_2 小时前
用了这 Skill,我觉得前端兄弟可以毕业了
前端·后端·agent
FRing032 小时前
vue2干货总结10(json-server、vant-ui、postcss插件、axios二次封装、图形验证码、toast轻提示)
开发语言·前端·vue.js·ui·json·vue2·postcss
梦想很大很大2 小时前
一句“你好”用了 5671 Token:我在 Workrun 中追查 Agent 隐性成本的过程
前端·人工智能·后端
SameX3 小时前
HarmonyOS ArkTS 做动画 FPS 自适应降级的滞后窗口做法
前端
用户97887605390483 小时前
Canvas 处理大图时如何不卡住主线程:一次浏览器端批量压缩的调度实践
前端
鶴哥只手遮天3 小时前
# 《Electron 45.2.3 内核解剖》第 6 章 Node.js 集成:两个事件循环的婚姻
前端·electron·开源
bai2733 小时前
别再手动刷后台了:用原生 CDP 给 4 个内容平台做登录态保活心跳
前端
工程小白菜3 小时前
AI 生成的代码谁来验收?从 Copilot 到 WorkBuddy 的三个实践
前端·ai编程
我不会起名字3223 小时前
仅 Web 主动 ping:30 秒读超时与各平台保活
前端·后端·websocket·go·即时通讯·im·故障排查