亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

模仿淘寶首頁的導(dǎo)航欄

Original 2019-04-30 11:56:53 279
abstract:<!DOCTYPE html><html lang="zh_cn"><head>    <meta charset="UTF-8"><!--    <link rel="stylesheet" href="static/css/s

<!DOCTYPE html>
<html lang="zh_cn">
<head>
   <meta charset="UTF-8">
<!--    <link rel="stylesheet" href="static/css/style1.css">-->
   <link rel="stylesheet" href="static/css/font-awesome-4.7.0/css/font-awesome.css">
   <title>Title</title>
   <style>
       /*給所有標(biāo)簽定義*/
       * {
           margin: 0;
           padding: 0;
       }
       /*給a標(biāo)簽定義一個固定樣式*/
       a {
           text-decoration-line: none;
           color: #C3C3C3;
           font-size: 13px;
       }
       .clear {
           clear: both;
       }
       /*導(dǎo)航欄設(shè)置背景顏色和高度*/
       .header {
           background-color: #F5F5F5;
           height: 40px;
           width: 100%;
       }
       /*導(dǎo)航欄內(nèi)容框的寬高設(shè)置*/
       .header_content {
           width: 1200px;
           line-height: 40px;
           margin: 0 auto;
           background-color: #F5F5F5;
       }
       /*設(shè)置左邊導(dǎo)航欄的高度,并進行向左浮動*/
       .header_left {
           height: 40px;
           float: left;
       }
       /*設(shè)置左邊導(dǎo)航欄按鈕間的間距*/
       .header_left a {
           margin-right: 3px;
       }
       /*設(shè)置右邊導(dǎo)航欄的高度,并進行向右浮動*/
       .header_right {
           height: 40px;
           float: right;
       }
       /*設(shè)置右邊導(dǎo)航欄按鈕間的間距*/
       .header_right a {
           margin-left: 3px;
       }
       /*將.header_a類選擇器中元素該為行內(nèi)塊元素,并設(shè)置文本居中顯示*/
       .header_a{
           display: inline-block;
           height: 40px;
           width: 80px;
           text-align: center;
       }
       /*添加光標(biāo)停留時.header_a類標(biāo)簽的顯示效果*/
       .header_a:hover {
           /*line-height: 40px;*/
           background-color: white;
       }
       /*添加光標(biāo)停留時<a>的顯示效果*/
       a:hover {
           color: #FF5000;
       }
   </style>
</head>
<body>

<div class="header">
   <div class="header_content">
       <div class="header_left">
           <a href="" class="header_a">中國大陸 &nbsp <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="" class="header_a">我的淘寶<i class="fa fa-angle-down"></i></a>
           <a href="" ><i class="fa fa-shopping-cart"  style="color: #FF5000"></i> &nbsp 購物車</a>
           <a href="" class="header_a"><span class="fa fa-star"></span> &nbsp 收藏夾<i class="fa fa-angle-down"></i></a>
           <a href="" class="header_a">商品分類</a>
           <a href="" class="header_a">賣家中心 &nbsp <i class="fa fa-angle-down"></i></a>
           <a href="" class="header_a">聯(lián)系客服</a>
       </div>
       <div class="clear"></div>
   </div>
</div>
</body>
</html>

Correcting teacher:查無此人Correction time:2019-05-05 09:29:04
Teacher's summary:完成的不錯。常用的css樣式,可以寫到一個公用文件里,隨時可以使用。繼續(xù)加油。

Release Notes

Popular Entries