首先写出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" type="text/css" href="type.css"/>
</head>
<body>
<div class="left">
<a href="#">新闻</a>
<a href="#">hao123</a>
<a href="#">地图</a>
<a href="#">贴吧</a>
<a href="#">视频</a>
<a href="#">图片</a>
<a href="#">网盘</a>
<a href="#">更多</a>
<span class="right">
<span>设置</span>
<a class="button">登录</a>
</span>
</div>
<div class="png">
<img
src="baidu.png"
alt="点击一下,了解更多"
title="点击一下,了解更多"
width="270"
height="129"
/>
</div>
<div class="flex-container">
<form class="flex-item1">
<input type="text"></input>
<span class="look">百度一下</span>
</form>
</div>
<div class="flex-container">
<div>
<div class="flex-item2">
<a href="#" class="hot