用HTML+CSS实现百度静态首页
2020-04-02 18:48
134 查看
说一下,底部和顶部的一些小字最好用<div>
来,我那样子太粗制烂造了(其实整体都是),以后有时间再修改吧
欢迎指正
低仿低仿,先放图
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>百度一下,你就知道</title> <style type="text/css"> a{color: black;} .right{ font-size: 12px; text-align: right; margin-top:15px; margin-right:30px; } *{ <!--好像是不推荐使用 * --> padding: 0; margin: 0; } .box{ width:650px; height:0px; margin:200px auto 100px; position:relative; } input{ height:35px; width:550px; box-sizing: border-box; text-indent:6px; font-size:16px; } .gd{ color: #fff; background: #38f; line-height: 24px; font-size: 13px; text-align: center; border-bottom: 1px solid #38f; margin-left: 7px; margin-top: 10px; cursor:default; } button{ height:35px; width:100px; border:none; color:white; box-sizing: border-box; background-color:#38f; position: absolute; left:550px; cursor:pointer; } .imges{ position: absolute; top:-140px; left:180px; } .cen{ text-align:center; margin-bottom:80px; } .buttom{ text-align:center; font-size:10px; color:grey; } </style> </head> <body style="font-family:'小米兰亭'"> <div class="right"> <a href="https://voice.baidu.com/act/newpneumonia/newpneumonia/?from=osari_pc_1" target="_blank" style="color:red"><strong><ins>抗击肺炎</ins></strong></a> <a href="http://news.baidu.com/" target="blank"><strong><ins>新闻</ins></strong></a> <a href="https://www.hao123.com/" target="blank"><strong><ins>hao123</ins></strong></a> <a href="https://map.baidu.com/" target="blank"><strong><ins>地图</ins></strong></a> <a href="http://v.baidu.com/" target="blank"><strong><ins>视频</ins></strong></a> <a href="https://tieba.baidu.com/index.html" target="blank"><strong><ins>贴吧</ins></strong></a> <a href="http://xueshu.baidu.com/" target="blank"><strong><ins>学术</ins></strong></a> <ins>登录</ins> <ins>设置</ins> <strong class="gd">更多产品</strong> </div> <div class="box"> <div class="imges"><img src="http://baidulogo.bj.bcebos.com/logo/hn7ymrh1c20xf99f5pj95v7d29auyaog.png" alt="百度logo" title="百度一下,你就知道" height="129" width="270"/> </div> <input type="text"/><button><strong>百度一下</strong></button> </div> <div class="cen"> <img src="https://ftp.bmp.ovh/imgs/2020/03/8b44e9b2612c464e.png" width="100px" /><br/> <p>下载百度APP</p> <font color="#999999">有事搜一搜,没事看一看</font> </div> <div class="buttom"> <a href="https://www.baidu.com/cache/sethelp/help.html">设为首页</a> <a href="http://home.baidu.com/">关于百度</a> <a href="http://ir.baidu.com/phoenix.zhtml?c=188488&p=irol-irhome">About Baidu</a> <a href="http://e.baidu.com/ebaidu/home?refer=888">百度推广</a> <a href="https://www.baidu.com/duty/">使用百度前必读</a> <a href="http://jianyi.baidu.com/"> 意见反馈</a> <a href="https://help.baidu.com/">帮助中心</a> ©2020 Baidu 京ICP证030173号 <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000001">京公网安备11000002000001号</a> 京ICP证030173号 </div> </body> </html>
好累好累,虽然还不完善,但是肝不动了
以后再说,以后再说
- 点赞 1
- 收藏
- 分享
- 文章举报
相关文章推荐
- html+css 实现百度首页
- html+css+js实现一个简单的电商商城首页
- HTML和CSS实现简单的静态页面——模仿GitHub页面
- 【HTML&CSS】静态网页模仿——京东首页
- 用HTML中的表格属性实现百度首页
- 玩转Web之html+CSS(一)---论坛首页表格的实现
- html、css 实现轮播图的静态样式
- 玩转Web之html+CSS(一)---论坛首页表格的实现
- 用CSS加HTML制作简单的百度首页
- 制作百度搜索首页(附赠HTML,js,css)
- HTML+CSS实现静态注册页面
- 练习(一) 仿百度首页 html+css
- 初学HTML/CSS仿写百度首页
- HTML+CSS实现简单静态网页的制作
- Only女装首页HTML+CSS代码实现
- Html+Css基础之仿百度首页
- HTML和CSS实现简单的静态页面——模仿GitHub页面
- PHP定时自动生成静态HTML的实现代码
- php正则去除网页中所有的html,js,css,注释的实现方法
- java实现将js、css、图片合并到html