最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CSS使用圖片美化的漂亮菜單效果

  發(fā)布時(shí)間:2015-09-28 16:47:35   作者:佚名   我要評(píng)論
這篇文章主要為大家介紹了CSS使用圖片美化的漂亮菜單效果,涉及css背景圖片動(dòng)態(tài)設(shè)置的相關(guān)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了CSS使用圖片美化的漂亮菜單效果。分享給大家供大家參考。具體如下:

這里介紹的這個(gè)菜單很漂亮,因?yàn)槊總€(gè)菜單項(xiàng)都是調(diào)用的圖片,感覺這個(gè)菜單有點(diǎn)華而不實(shí),畢竟菜單太多會(huì)影響網(wǎng)頁加載,一個(gè)菜單也沒有必要為了好看而犧牲太多,根據(jù)你的需要使用哦。

運(yùn)行效果截圖如下:

在線演示地址如下:

http://demo.jb51.net/js/2015/css-pic-cha-style-menu-demo/

具體代碼如下:


復(fù)制代碼
代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用圖片美化的CSS菜單</title>
<style>
body{background:#fff url(images/bkg_page.png);background-repeat:repeat-x;padding:0;margin:0;font-family:'Verdana';font-size:12px;color:#7f8991}
#header{margin:108px 0 0 100px}
#header em{display:none}
#header ul{width:100%;float:left;padding:0;margin:0;list-style-type:none}
#header li{float:left;padding:0;margin:0;display:inline}
#header li a{display:block;height:46px}
#header li a.home{background:url(images/menu_01.png) no-repeat left top;width:52px}
#header li a.homeActive{background:url(images/menu_01.png) no-repeat left bottom;width:52px}
#header li a.gallery{background:url(images/menu_02.png) no-repeat left top;width:60px}
#header li a.galleryActive{background:url(images/menu_02.png) no-repeat left bottom;width:60px}
#header li a.resources{background:url(images/menu_03.png) no-repeat left top;width:76px;margin:0;padding:0}
#header li a.resourcesActive{background:url(images/menu_03.png) no-repeat left bottom;width:76px}
#header li a.submit{background:url(images/menu_04.png) no-repeat left top;width:97px}
#header li a.submitActive{background:url(images/menu_04.png) no-repeat left bottom;width:97px}
#header li a.feed{background:url(images/menu_05.png) no-repeat left top;width:68px}
#header li a.feedActive{background:url(images/menu_05.png) no-repeat left bottom;width:68px}
#header li a.about{background:url(images/menu_06.png) no-repeat left top;width:52px}
#header li a.aboutActive{background:url(images/menu_06.png) no-repeat left bottom;width:52px}
#header li a.blog{background:url(images/menu_10.png) no-repeat left top;width:51px}
#header li a.blogActive{background:url(images/menu_10.png) no-repeat left bottom;width:51px}
#header li a.contact{background:url(images/menu_07.png) no-repeat left top;width:64px}
#header li a.contactActive{background:url(images/menu_07.png) no-repeat left bottom;width:64px}
#header li a:hover{background-position:left bottom}
</style>
</head>
<body>
<div id="header">
<ul>
<li><a class="homeActive" href="#"><em>home</em></a></li>
<li><a class="gallery" href="#"><em>gallery entries</em></a></li>
<li><a class="resources" href="#"><em>resources</em></a></li>
<li><a class="submit" href="#"><em>submit a site</em></a></li>
<li><a class="feed" href="#"><em>our feed</em></a></li>
<li><a class="blog" href="#"><em>blog</em></a></li>
<li><a class="about" href="#"><em>about</em></a></li>
<li><a class="contact" href="#"><em>contact</em></a></li>
</ul>
</div>
</body>
</html>

希望本文所述對(duì)大家的css網(wǎng)頁設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論

汝南县| 阳东县| 巴彦县| 正蓝旗| 荔波县| 广灵县| 尉犁县| 平顺县| 尼木县| 镶黄旗| 清徐县| 石狮市| 奉节县| 革吉县| 敖汉旗| 海安县| 齐齐哈尔市| 竹山县| 营口市| 静安区| 盐津县| 芒康县| 无锡市| 娄烦县| 岑溪市| 五莲县| 安阳市| 固镇县| 梅河口市| 溧阳市| 墨竹工卡县| 岳阳县| 高安市| 尚志市| 宜章县| 漯河市| 寿阳县| 炉霍县| 江都市| 上犹县| 静宁县|