模仿百度首页

1、展示效果:              

2、网页代码:

<html>
<body>
<table width=100%>
 <tr>
  <td>
   <table>
    <tr>
     <td> <a href="http://news.baidu.com/">新闻</td><td></td>
     <td> <a href="https://www.hao123.com/">hao123</td><td></td>
     <td> <a href="https://map.baidu.com/@11868752,3422738,13z">地图</td><td></td>
     <td> <a href="https://live.baidu.com/">直播</td><td></td>
     <td> <a href="https://haokan.baidu.com/?sfrom=baidu-top">视频</td><td></td>
     <td> <a href="https://tieba.baidu.com/index.html">贴吧</td><td></td>
     <td> <a href="https://xueshu.baidu.com/">学术</td><td></td>
     <td> <a href="https://www.baidu.com/more/">更多</td>
    </tr>
   </table>
  </td>
  
  <td>
   <table>
    <tr><td></td>
    <td>设置</td><td></td>
    <td> <a href="https://passport.baidu.com/v2/?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F&sms=5">登录</td>
    </tr>
   </table>
  </td>
 </tr>
 
 <tr>
 <td align= "center">
  <a href="https://www.baidu.com/swd=%E7%99%BE%E5%BA%A6%E7%83%AD%E6%90%9C&sa=ire_dl_gh_logo_texing&rsv_dl=igh_logo_pcs" > 
  <img border="0" src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png" /width="300" heigth="300">
  </a>
</td>
</tr>
 
<tr>
  <td align ="center">
   <input style="width:600px; height:38px;" ><button style="background-color: blue;height:38px;"><font family="verdana" color="white" font size="4">百度一下</button></style></input>
  </td>
 </tr>
<tr>
  <td align="center">
  <table>
    <tr>
     <td > <a href="https://top.baidu.com/board?platform=pc&sa=pcindex_entry">百度热搜</td>
    </tr>
  </table>
  <td>
 </tr>

 <tr>
   <td align="center">
   <a href="https://www.baidu.com/s?cl=3&tn=baidutop10&fr=top1000&wd=%E4%BA%BA%E6%B0%91%E6%97%A5%E6%8A%A5%E8%AF%84%E8%AE%BA+%E4%B8%89%E4%B8%AA%E6%B2%A1%E6%9C%89%E5%8F%98&rsv_idx=2&rsv_dl=fyb_n_homepage&hisfilter=1">1  人民日报评论明确三个没有变      </a>
   </td> 
  </tr>
 <tr>
   <td align="center">
    <a href="https://www.baidu.com/s?cl=3&tn=baidutop10&fr=top1000&wd=%E4%B8%AD%E6%96%B9%E5%86%B3%E5%AE%9A%E5%90%91%E9%98%BF%E5%AF%8C%E6%B1%97%E6%8F%90%E4%BE%9B%E4%BB%B7%E5%80%BC2%E4%BA%BF%E6%8F%B4%E5%8A%A9&rsv_idx=2&rsv_dl=fyb_n_homepage&hisfilter=1">2  中方向阿富汗提供价值2亿援助</a>
    </td> 
  </tr>
  <tr>
    <td align="center">
     <a href="https://www.baidu.com/s?tn=baidutop10&wd=%E4%B8%AD%E5%9B%BD%E6%95%B4%E6%B2%BB%E9%A5%AD%E5%9C%88%E9%92%88%E5%AF%B9%E9%9F%A9%E5%9B%BD%3F%E4%B8%AD%E6%96%B9%E5%9B%9E%E5%BA%94&rsv_idx=2&ie=utf-8&rsv_pq=f978dc7a000cd3c6&oq=%E4%B8%AD%E5%9B%BD%E6%95%B4%E6%B2%BB%E9%A5%AD%E5%9C%88%E9%92%88%E5%AF%B9%E9%9F%A9%E5%9B%BD%3F%E4%B8%AD%E6%96%B9%E5%9B%9E%E5%BA%94&rsv_t=5f36SeLBeqCUsVZ5nSL%2BzRyc41MxEj91b0ihl%2FT59viFBJVHANOe9ZlV7CWy9jLkrQ&rqid=f978dc7a000cd3c6&rsf=06477572337983bc277e2984eeedbd29_1_15_4&rsv_dl=0_right_fyb_pchot_20811&rqid=f978dc7a000cd3c6">3  中国整治饭圈针对韩国?中方回应   </a>
     </td> 
   </tr>
</table>

</body>
</html>

3、设计过程:

      首先观察这张网页,有两个部分组成,一个是头部菜单,另外一个是搜索栏的表单。在设计头部表单时,使用了table嵌套的方法,将头部表单分为了左右两个部分,左边分别有;新闻,hao123,地图,直播,视频,贴吧,学术,更多8个元素;右边是设置和登录。

在设计好头部表单后,下一个是百度的图片,使用img border,再将其居中。然后是搜索栏部分和百度热搜,都是使用的table表格。

4、设计总结:

   主要是需要把各种情况需要使用的方法记住,例如链接:a href ;图片:img border;等等,只要学会了这些使用方法,剩下的就是堆砌过程。

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

竹骄傲

你的鼓励将是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值