网页首页优化(块标签)(css)

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.logo{
				float:left;
				width: 33%;
				height: 60px;
			}
			
			.amenu{
				color: white;
				text-decoration: none;
				line-height: 50px;
			}
			.production{
				width: 16%;height:240px;float: left;text-align: center;
			}
			
		</style>
	</head>
	<body>
		<!--
        	作者:offline
        	时间:2020-09-06
        	描述:
        	1.嵌套一个最外层div
        	2.logo部分:嵌套三个divr
        	3。导航栏部分:放置5个超链接
        	4.轮播图
        -->
        <!--1.嵌套一个最外层div-->
        <div>
        	<!--2.logo部分:嵌套三个div-->
        	<div class="logo">
        		<img src="../../js/img/logo2.png"/>
        	</div>
        	<div class="logo">
        		<img src="../../js/img/header.jpg" />
        	</div>
        	<div class="logo">
        		<a href="a">登录</a>
        		<a href="a">注册</a>
        		<a href="a">解决问题</a>
        	</div>
        	<div style="clear: both;"></div>
        	<!--3。导航栏部分:放置5个超链接-->
        	<div style="background-color: black;height: 50px;">
        		<a href="a" class="amenu">首页</a>
        		<a href="a" class="amenu">手机数码</a>
        		<a href="a" class="amenu">电脑办公</a>
        		<a href="a" class="amenu">鞋靴箱包</a>
        		<a href="a" class="amenu">香烟酒水</a>
        		
        	</div>
        	<!--4.轮播图-->
        	<div style="width: 100%;">
        		<img src="../../js/img/1.jpg" width="100%" height="100%"/>
        	</div>
        	<!--5.最新商品部分-->
        	<div>
        		<div>
        			<h2>最新商品<img src="../../js/img/title2.jpg"></h2>
        		</div>
        		<div style="width: 15%;height:480px;float: left;">
        			<img src="../../资料/WEB01/products/hao/big01.jpg" width="100%" height="100%"/>
        		</div>
        		<div style="width: 84%;height=480px;float: left;">
        			<div style="width:50%;height:240px;float: left;">
        				<img src="../../资料/WEB01/products/hao/middle01.jpg" width="100%" height="100%"/>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div> 
        		</div>
        	</div>
        	
        	<div>
        		<img src="../../资料/WEB01/products/hao/ad.jpg" width="100%"/>
        	</div>
        	<!--5.最新商品部分-->
        	<div>
        		<div>
        			<h2>最新商品<img src="../../js/img/title2.jpg"></h2>
        		</div>
        		<div style="width: 15%;height:480px;float: left;">
        			<img src="../../资料/WEB01/products/hao/big01.jpg" width="100%" height="100%"/>
        		</div>
        		<div style="width: 84%;height=480px;float: left;">
        			<div style="width:50%;height:240px;float: left;">
        				<img src="../../资料/WEB01/products/hao/middle01.jpg" width="100%" height="100%"/>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div>
        			<div class="production">
        				<img src="../../资料/WEB01/products/hao/small08.jpg"/>
        				<p>高压锅</p>
        				<p style="color: red;">¥988</p>
        			</div> 
        		</div>
        	</div>
        	<div>
        		<img src="../../资料/WEB01/products/f001a62f-a49d-4a4d-b56f-2b6908a0002c_g.jpg" width="100%">
        	</div>
        	<div style="text-align: center;">
        		<a href="a">关于我们</a>
        		<a href="a">联系我们</a>
        		<a href="a">招贤纳士</a>
        		<a href="a">法律声明</a>
        		<a href="a">友情链接</a>
        		<a href="a">支付方式</a>
        		<a href="a">配送方式</a>
        		</br>
        		<h3>GG<h3>
        	</div>
        </div>
	</body>
</html>

在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值