一、 我們製作一個百度首頁作為練習,可直接複製該代碼保存尾碼名為.html來查看 二、源碼: d93_baidu_home_exercise.html 地址: https://github.com/ruigege66/HTML_learning/blob/master/d93_baidu_home_ ...
一、 我們製作一個百度首頁作為練習,可直接複製該代碼保存尾碼名為.html來查看
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>d93_baidu_home_exercise</title> <style> .header{ height: 250px; /*background-color: red;*/ } .content{ height: 220px; /*background-color: pink;*/ } .footer{ height: 200px; /*background-color:green;*/ } div{ text-align: center; } .logo{ background-color:skyblue; height: 130px; } input[type=text]{ width: 400px; height:30px; } input[type=submit]{ width:80px; height:30px; } .content_form{ height:80px; } body{ font-size: 16px; } </style> </head> <body> <div class="header"> <div> <img src="image/baidu_logo.png" alt="" class="logo"> </div> <div class="header_navgitor"> <a href="#">新聞</a> <a href="#">音樂</a> <a href="#">知道</a> <a href="#">文庫</a> <a href="#">應用</a> <a href="#">視頻</a> <a href="#">地圖</a> </div> </div> <div class="content"> <div class="content_form"> <form action="http://www.baidu.com"> <input type="text" name="" id=""> <input type="submit" value="百度一下" > </form> </div> <div> <a href="#">百科</a> <a href="#">文庫</a> <a href="#">hao123</a> <a href="#">更多>></a> </div> </div> <div class="footer"> <div> <a href="#">把百度設為首頁</a> <a href="#">安裝百度衛士</a> </div> <div> <a href="#">加入百度推廣</a> | <a href="#">關於百度</a> | <a href="#">About 百度</a> </div> <div> @2019Baidu,使用百度前必讀 京ICP證666號 </div> </div> </body> </html>
二、源碼:
d93_baidu_home_exercise.html
地址:
https://github.com/ruigege66/HTML_learning/blob/master/d93_baidu_home_exercise.html
2.CSDN:https://blog.csdn.net/weixin_44630050(心悅君兮君不知-睿)
3.博客園:https://www.cnblogs.com/ruigege0000/
4.歡迎關註微信公眾號:傅里葉變換,後臺回覆“禮包”獲取Java大數據學習視頻禮