html的网页制作代码分享

7 篇文章 0 订阅
6 篇文章 0 订阅
<!--  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>

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

jing静~

ლ(°◕‵ƹ′◕ლ)让我一键努

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值