静态页面,纯html和css
html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>百度一下,你就知道</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<!-- 头部导航和登录 -->
<div class="head">
<div class="topLeft">
<a href="" class="top">新闻</a>
<a href="" class="top">hao123</a>
<a href="" class="top">地图</a>
<a href="" class="top">贴吧</a>
<a href="" class="top">视频</a>
<a href="" class="top">图片</a>
<a href="" class="top">网盘</a>
<div class="more">
<a href="" class="top">更多</a>
</div>
</div>
<div class="topRight">
<span>设置</span>
<a href="#" class="login">登录</a>
</div>
</div>
<!-- 主体 -->
<div class="center">
<!-- 百度图标 -->
<div>
<img src="https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.