练习(一) 仿百度首页 html+css

第一次仿页面,虽然页面简单,但也用了很长时间,还有一些不规范的地方,今后要继续努力!

效果图:
在这里插入图片描述
html代码:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="../css/main.css">
		<link rel="stylesheet" type="text/css" href="../css/fonts.css"/>
		<title>百度一下,你就知道</title>
	</head>
	<body>
		<!-- 头部导航栏  start -->
		<div class="nav">
			<div class="nav-l">
				<div class="weather">
				    <span class="city">桂林:</span>
			     	<img src="../images/weather.png">
			    	<span>20°C</span>
		     		<span class="air">优</span>
				    <span class="num">22</span>
			    	<span class="show-vertical">|<span>
				</div>
				<div class="s-icons">
					<a href="#">换肤<a>
					<a href="#">消息<a>
					<a href="#">显示频道<a>
				</div>
			</div>
			<div class="nav-r">
				<a href="#">新闻</a>
				<a href="#">hao123</a>
				<a href="#">地图</a>
			    <a href="#">视频</a>
			    <a href="#">贴吧</a>
			    <a href="#">学术</a>
			    <a href="#">登录</a>
			    <a href="#">设置</a>
				<a href="#">更多产品</a>
			</div>
		</div>
		<!-- 头部导航栏  end -->
		<!-- 中间部分  start -->
		<div class="logo">
			<img src="../images/logo.png" >
		</div>
		<div class="search-box">
			<input type="text" >
			<span class="icon-camera"></span>
			<button type="submit" >百度一下</button>
		</div>
		<!-- 中间部分  end -->
		<!-- 底部 start -->
		<div class="footer">
			<p><a href="#" class="set-home">设为主页</a>
			@2019 Baidu
			<a href="#">使用百度前必读</a>
			<a href="#">意见反馈</a>
			京ICP证030173号
			<img src="../images/icp.png"></p>
			<p><img src="../images/recordcode.png">
			   <a href="#" class="recordcodes">京公网安备11000002000001号</a></p>
		</div>
		<!-- 底部 end -->
	</body>
</html>

css代码:

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值