【Web】CSS(No.17)Css经典案例(一)《Css实现百度首页》


需要素材联系我或私信、评论

效果图

在这里插入图片描述

HTML源码

<!DOCTYPE html>
<html lang="en">
  <head>
	<meta charset="UTF-8">
	<title>百度首页</title>
	<link rel="stylesheet" href="css/index.css">
  </head>
  <body>
	<div>
	  <img src="img/bdlogo.gif" alt="">
	</div>

	<p>
	  <a href="">&nbsp;</a>&nbsp;&nbsp;
	  <a href="">&nbsp;</a>&nbsp;&nbsp;
	  <a href="">&nbsp;</a>&nbsp;&nbsp;
	  <a href="">&nbsp;</a>&nbsp;&nbsp;
	  <a href="">&nbsp;</a>&nbsp;&nbsp;
	  <a href="">&nbsp;</a>&nbsp;&nbsp;
	  <a href="">&nbsp;</a>&nbsp;&nbsp;
	  <a href="">&nbsp;</a>
	</p>
	<br>
	<br>

	<div>
	  <div style="width:100%;height:20px;text-align:center">
	    <input style="width:500px;height:25px" type="text" name="textbox">
	    <button style="width:100px;height:30px;text-align:center;background-color:#eeeeee">百度一下</button>
	  </div>
	</div>
	<br>

	<p>
	  <a href="">百科</a>&nbsp;&nbsp;
	  <a href="">文库</a>&nbsp;&nbsp;
	  <a href="">hao123</a>&nbsp;&nbsp;|&nbsp;
	  <a href="">更多>></a>&nbsp;&nbsp;
	</p>
	<br>
	<br>

	<p>
	  <img src="img/ic.jpg" alt="">
	  <a href="">百度地图带你吃喝玩乐,全心全意为人民服务</a>&nbsp;&nbsp;
	</p>
	<br>
	<br>

	<p>
	  <a href="">把百度设为主页</a>&nbsp;&nbsp;
	  <a href="">安装百度卫士</a>&nbsp;&nbsp;
	</p>

	<p>
	  <a href="">加入百度推广</a>&nbsp;&nbsp;|&nbsp;
	  <a href="">搜索风云榜</a>&nbsp;&nbsp;|&nbsp;
	  <a href="">关于百度</a>&nbsp;&nbsp;|&nbsp;
	  <a href="">About Baidu>></a>&nbsp;&nbsp;
	</p>

	<p>
	  ©2013&nbsp;Baidu&nbsp;使用百度前必读&nbsp;京ICP证030173号
	</p>
  </body>
</html>

CSS源码

div{
	text-align:center;
   }

p{
	text-align:center;
}
  • 9
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值