導覽功能表的一般做法,導覽功能表一般做法

來源:互聯網
上載者:User

導覽功能表的一般做法,導覽功能表一般做法

<!DOCTYPE html><html><head><title>導覽列的做法之一</title><style>/*這是導航條****************************************************************************/    /*容器是用來裝那個存放了a標籤的div*/    .rongqi{        background:#2C323B;        height:55px;        width:100%;        margin:80px 0px;    }    /*導航條裡面各個a標籤的總寬度,當前是六個a的寬度,每個a寬度預設是200px*/    #top{        //border:solid #fff 1px;        margin:0px auto;        width:1200px;        height:55px;            }    /*hanghang是a標籤的class*/    .hanghang{        font-size:20px;        color:#DDDDDD;        text-align:center;        line-height:50px;        float:left;        width:200px;        height:55px;        margin-left:0px;        list-style-type:none;        background:#2C323B;        text-decoration:none;    }    .hanghang:hover{        list-style-type:none;        color:#ffffff;        font-weight:800;        background:#0C8ED9;    }/*****************************************************************************這是導航條/    </style></head><body><!--這是導航條***************************************************************************-->    <div class="rongqi">        <div id="top">            <a class="hanghang" href="#">首頁</a>            <a class="hanghang" href="#">導航1</a>            <a class="hanghang" href="#">導航2</a>            <a class="hanghang" href="#">導航3</a>            <a class="hanghang" href="#">導航4</a>            <a class="hanghang" href="#">導航5</a>        </div>    </div><!--***************************************************************************這是導航條--></body></html>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.