<!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>Document</title>
<style>
.box {
height: 40px;
border-top: 3px solid #ff8500;
border-bottom: 1px solid #edeef0;
}
.box a {
/* 不统一设置宽,设置内边距 */
/* width: 80px; */
padding: 0 16px;
height: 40px;
/* background-color: #edeef0; */
display: inline-block;
text-align: center;
line-height: 40px;
font-size: 12px;
color: #4c4c4c;
text-decoration: none;
}
.box a:hover {
background-color: #edeef0;
color: #ff8400;
}
</style>
</head>
<body>
<div class="box">
<!-- 标签内容不一 -->
<a href="#">新浪</a>
<a href="#">新浪导航</a>
<a href="#">这是新浪导航</a>
<a href="#">新浪导航新浪导航</a>
</div>
</body>
</html>
前端-新浪导航
最新推荐文章于 2023-10-12 11:37:48 发布