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

2019-6-26 下拉列表實(shí)踐

原創(chuàng) 2019-06-26 16:52:38 340
摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>iconfont</title><link rel="stylesheet" href="https://netdna.bootstrapcdn.com/fon

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>iconfont</title>

<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

<style>

*{margin:0;padding:0;}

.box{background-color:#090723;height:55px;width:100%;}

.nav{width:1180px;height: 55px;margin:0 auto;}

.clear{clear:both;}


.logo{width:125px;height:55px;float:left;margin-right: 20px;}

.left{float:left;}

.right{float:right;}

h2{color:#fff;font-family:'微軟雅黑';line-height: 55px;}

a{text-decoration:none;color:#aaa;padding:0 10px;line-height:55px;display:inline-block;font-size: 14px;}

a:hover{color:#fff;}

.shou{color:#fff;}

img:hover{color: #fff;line-height: 55px;}

ul li{list-style: none;}

.com ul{position: absolute;text-align: left;background-color:#000;border-radius:5px;margin-left: -20px;display: none;}

.com{position: relative;}

.com:hover ul{display: block;}

.com ul li{width:80px;height:36px;text-align:left;line-height:36px;color:#666;font-size:12px;display:inline-block;padding-left:20px;}

.com ul li:hover{background-color:#1a182e;color:#fff; }


.zong{width:1180px;margin:0 auto;margin-top: 20px;color:#090723;}

</style>

</head>

<body>

<div>

<div>

<div>

<h2>iconfont</h2>

</div>

<div>

<a href="#">首頁(yè)</a>

<a href="#">圖標(biāo)庫(kù)

<ul>

<li>官方圖標(biāo)庫(kù)</li>

<li>多色圖標(biāo)庫(kù)</li>

<li>單色圖標(biāo)庫(kù)</li>

<li>所有圖標(biāo)庫(kù)</li>

</ul>

</a>

<a href="#">圖標(biāo)管理

<ul>

<li>我的圖標(biāo)</li>

<li>我的收藏</li>

<li>我的項(xiàng)目</li>

</ul>

</a>

<a href="#">阿里巴巴普惠體</a>

<a href="#">幫助

<ul>

<li>功能介紹</li>

<li>代碼應(yīng)用</li>

<li>圖標(biāo)繪制</li>

<li>相關(guān)文章</li>

</ul>

</a>

<a href="#">活動(dòng)</a>

<a href="#"><i class="fa fa-ellipsis-h" style="font-size:25px;line-height:55px;"></i>

<ul>

<li>在線字體</li>

<li>功能建議</li>

</ul>

</a>

</div>

<div class="right com">

<a href="#"><i class="fa fa-user-circle" style="font-size:25px;line-height:55px;"></i>

<ul>

<li>設(shè)置</li>

<li>退出</li>

</ul>

</a>

<a href="#"><i class="fa fa-cloud-upload" style="font-size:25px;line-height:55px;"></i></a>

<a href="#"><i class="fa fa-share-alt" style="font-size:25px;line-height:55px;"></i></a>

<a href="#"><i class="fa fa-cart-plus" style="font-size:25px;line-height:55px;"></i></a>

</div>

</div>

</div>

<div></div>

<br><br><br><br><br><br><br><br><br>

<div>

<h3>總結(jié)</h3>

<p>1.合理布局很重要,巧用盒子模型</p>

<p>2.仔細(xì)觀察總結(jié),提煉模塊重復(fù)利用,有效提升代碼效率</p>

<br>

<h3>注意</h3>

<p>1.下拉列表與導(dǎo)航之間的間距不知道問(wèn)題出在哪里</p>

<p>2.下拉列表每個(gè)導(dǎo)航上下的間距不知道哪來(lái)的</p>

<p>3.字體圖標(biāo)庫(kù)引入后,圖標(biāo)大小、位置調(diào)節(jié)問(wèn)題很多</p>

<p>4.總感覺(jué)代碼亂糟糟的,雖然是有條理的寫(xiě),但還是理不清</p>

</div>

</body>

</html>


批改老師:天蓬老師批改時(shí)間:2019-06-27 12:59:22
老師總結(jié):下拉菜單,用純css做的情況是不多的, 因?yàn)橛性S多功能是實(shí)現(xiàn)不了, 還是推薦用javascript來(lái)處理一些行為

發(fā)佈手記

熱門詞條