Ein einfaches nachgeahmtes Baidu-Seiten-HTML. Wenn Sie den Code benötigen, besorgen Sie ihn sich bitte selbst ~
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>仿百度页面</title> <style> body { font-family: Arial, sans-serif; background-color: #f5f5f5; margin: 0; padding: 0; } #header { background-color: white; text-align: center; padding: 20px; } #header img { width: 500px; height: 200px; } #nav { text-align: center; padding: 20px; background-color: #fff; font-size: 36px; } #nav a { text-decoration: none; color: #333; margin-right: 20px; font-size: 16px; } #search-container { text-align: center; margin-top: 10px; } #search-box { width: 800px; padding: 10px; border: 1px solid #ccc; border-radius: 10px; font-size: 18px; outline: none; } #search-button { background-color: #3385ff; color: white; border: none; border-radius: 10px; padding: 10px 20px; font-size: 18px; cursor: pointer; } #footer { text-align: center; padding: 30px; background-color: #fff; } #footer a { text-decoration: none; color: #333; margin-right: 20px; font-size: 20px; } </style> </head> <body> <div id="header"> <img src="img/baidu.png" alt="百度图标"> </div> <div id="nav"> <a href="#" >新闻</a> <a href="#" >网页</a> <a href="#" >贴吧</a> <a href="#" >知道</a> <a href="#" >音乐</a> <a href="#" >图片</a> <a href="#" >视频</a> <a href="#" >地图</a> </div> <div id="search-container"> <form action="https://www.baidu.com/s" method="get"> <input type="text" id="search-box" name="wd" placeholder="百度一下,你就知道"> <input type="submit" id="search-button" value="百度一下"> </form> </div> <div id="footer"> <a href="#" >问题反馈请发送邮件</a> </div> </body> </html>