效果如图:
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>钻戒网</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="nav w">
<ul>
<li><a href="#">登录</a></li>
<li><a href="#">注册</a></li>
<li><a href="#">购物车(0)</a></li>
<li><a href="#">English</a></li>
</ul>
</div>
<div class="header w">
<div class="log">
<img src="./img/logo.png" alt="">
</div>
</div>
<div class="nav2 w">
<ul>
<