淘宝页面导航

Original 2019-04-21 23:19:00 180
abstract:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>淘宝导航</title> <link rel="stylesheet" type="text/css" href="css/index.

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>淘宝导航</title>

<link rel="stylesheet" type="text/css" href="css/index.css">

<link rel="stylesheet" type="text/css" href="css/font-awesome-4.7.0/css/font-awesome.min.css">

<style type="text/css">

*{margin: 0px;padding: 0px;}

a{text-decoration: none;color: #000;font-size:12px;}

.clear{clear:both;}

.header{width: 100%;/*height: 40px;*/background: #F5F5F5;}

.header_content{width: 1200px;/*height: 40px;*/margin: 0px auto;line-height: 200%;}

.header_content a:hover{color: #ff5000;}

.header_left{width: 300px;height: 40px;background:pink;float: left;}

.header_left a{margin-right: 5px;}

.header_right{width: 600px;height: 40px;background: pink;float: right;}

.header_right a{margin-right: 5px;}

.head-a{display: inline-block;height: 40px;width: 90px;/*background: red;*/text-align: center;}

  </style>

</head>

<body>

<div class="header">


<div class="header_content">

<div class="header_left">

<a href="" class="head-a">中国大陆 <i class="fa fa-angle-down"></i></a>

<a href="" style="color: #ff5000">亲,请登录</a>

<a href="">免费注册</a>

<a href="">手机逛淘宝</a>



</div>


<div class="header_right">

            <a href="">我的淘宝</a>

            <a href="">购物车</a>

            <a href="">收藏夹</a>

            <a href="">商品分类</a>

            <a href="">卖家中心</a>

           </div>




</div>

<div class="clear"></div>


</div>


</body>

</html>


Correcting teacher:天蓬老师Correction time:2019-04-22 09:16:31
Teacher's summary:header_left, 在css中, 推荐使用连接线 : -, 不推荐用下划线, 当然用下划线也不错....

Release Notes

Popular Entries