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

下拉菜單總結(jié)

asal 2019-01-27 22:23:35 232
abstrak:總結(jié):1.下拉列表,需要用到絕對(duì)定位,脫離文檔流,使其不影響其它布局。2.鼠標(biāo)移上,列表展開(kāi)。用到hover聽(tīng)到過(guò)有人說(shuō):好的前端工程師都是設(shè)計(jì)師。感覺(jué)自己不會(huì)做太多前端的東西,主要還是攻一下后端吧。代碼:HTML:<!DOCTYPE html><html><head>    <title>淘寶導(dǎo)航</t

總結(jié):

1.下拉列表,需要用到絕對(duì)定位,脫離文檔流,使其不影響其它布局。

2.鼠標(biāo)移上,列表展開(kāi)。用到hover

聽(tīng)到過(guò)有人說(shuō):好的前端工程師都是設(shè)計(jì)師。

感覺(jué)自己不會(huì)做太多前端的東西,主要還是攻一下后端吧。

代碼:

HTML:

<!DOCTYPE html>

<html>

<head>

    <title>淘寶導(dǎo)航</title>

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

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

</head>

<body>

    <div class="header">

        <div class="content">

            <div class="contentLeft">

                <a href="" class="content_a">中國(guó)大陸&nbsp;&nbsp; <i class=" fa fa-angle-down"></i></a>

                <a href="" style="color:#ff5000">親,請(qǐng)登陸</a>

                <a href="">免費(fèi)注冊(cè)</a>

                <a href="">手機(jī)逛淘寶</a>

            </div>

            <div class="contentRight">

                <a href="" class="content_a">我的淘寶&nbsp;&nbsp; <i class=" fa fa-angle-down"></i>

                    <ul>

                        <li>已買(mǎi)到的寶貝</li>

                        <li>我的足跡</li>

                    </ul>

                </a>

                

                <a href="" > <span class="fa fa-cart-plus" style="color:#ff5000"></span>&nbsp;購(gòu)物車(chē)&nbsp;&nbsp; <i class=" fa fa-angle-down"></i></a>

                <a href="" class="content_a"> <span class="fa fa-star"></span>&nbsp;收藏夾&nbsp;&nbsp; <i class=" fa fa-angle-down"></i>

                    <ul>

                        <li>收藏的寶貝</li>

                        <li>收藏的店鋪</li>

                    </ul>

                </a>

                <a href="">商品分類(lèi)</a>

                <a href="" class="content_a">賣(mài)家中心&nbsp;&nbsp; <i class=" fa fa-angle-down"></i>

                    <ul>

                        <li>免費(fèi)開(kāi)店</li>

                        <li>已賣(mài)出的寶貝</li>

                        <li>出售的寶貝</li>

                        <li>賣(mài)家服務(wù)市場(chǎng)</li>

                        <li>賣(mài)家培訓(xùn)中心</li>

                        <li>體檢中心</li>

                        <li>問(wèn)商友</li>

                    </ul>

                </a>

                <a href="" class="content_a">聯(lián)系客服&nbsp;&nbsp; <i class=" fa fa-angle-down"></i>

                    <ul>

                        <li>消費(fèi)者客服</li>

                        <li>賣(mài)家客服</li>

                    </ul>

                </a>

                <a href="" class="content_a" style="color:#ff5000">網(wǎng)站導(dǎo)航&nbsp;&nbsp; <i class=" fa fa-angle-down"></i></a>

            </div>

        </div>

        

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

    </div>

</body>

</html>

CSS:

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

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

li{list-style: none;}

.header{ width: 100%; height: 40px; background-color: #f5f5f5; }

.content{ width: 1200px; margin: 0px auto;line-height: 40px; }

.contentLeft{ height: 40px; float: left; }

.contentLeft a{

margin-right: 5px;

}

.contentLeft a:hover{

color: #ff5000;


}

.contentRight{  height: 40px;  float: right; }

.contentRight a{

margin-right: 5px;

}

.clear{ clear:both; }

.content_a{

display: inline-block;

height: 40px;

width: 90px;

text-align: center;

position: relative;

}

.content_a:hover{

background-color: #fff;

color: #ff5000;

}

.content_a ul{

border: 1px solid #f5f5f5;

border-top: none;


display:none;

position: absolute;

}

.content_a:hover ul{

display: block;

width:100px;

}  

.content_a ul li{

color: #6c6c6c;

height: 30px;

line-height: 30px;

text-align: left;

padding: 0px 3px;

margin: 5px 0px;

}

.content_a ul li:hover{

background: #f5f5f5;

}


Guru membetulkan:滅絕師太Masa pembetulan:2019-01-28 09:16:01
Rumusan guru:能用機(jī)會(huì)成為全棧,為何要選擇呢,不管是學(xué)習(xí)的哪一個(gè)階段都全力以赴吧

Nota Keluaran

Penyertaan Popular