欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

純css實(shí)現(xiàn)藍(lán)色圓角效果水平導(dǎo)航菜單代碼

  發(fā)布時(shí)間:2015-09-11 17:03:12   作者:佚名   我要評(píng)論
這篇文章主要為大家介紹了純css實(shí)現(xiàn)藍(lán)色圓角效果水平導(dǎo)航菜單代碼,實(shí)例分析了基于css技術(shù)通過(guò)背景圖片構(gòu)造圓角菜單的實(shí)現(xiàn)方法,具有一定參考借鑒價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了純css實(shí)現(xiàn)藍(lán)色圓角效果水平導(dǎo)航菜單代碼。分享給大家供大家參考。具體如下:

這是一款可愛(ài)的藍(lán)色圓角水平導(dǎo)航菜單,用到幾張背景圖片,我覺(jué)得這款菜單挺實(shí)用,特別是用在個(gè)人博客中非常合適。在兼容性方面做的也很好,幾乎兼容所有的瀏覽器。

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

在線演示地址如下:

http://demo.jb51.net/js/2015/css-blue-cicle-style-nav-menu-codes/

具體代碼如下:


復(fù)制代碼
代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>藍(lán)色圓角水平導(dǎo)航菜單</title>
<style>
*{
margin:0;
padding:0;
}
body{
background:#fff;
color:#666;
font:12px/18px Tahoma, Arial, Helvetica, sans-serif;
}
#menu{
width:100%;
margin:15px;
}
#menu ul{
list-style:none;
}
#menu li{
list-style:none;
display:block;
float:left;
margin:0 2px;
}
#menu li a{
display:block;
float:left;
height:66px;
color:#fff;
text-transform:uppercase;
font-size:11px;
font-weight:bold;
background:url(images/menu_009_l.jpg) no-repeat left;
line-height:66px;
padding:0 0 0 9px;
text-decoration:none;
}
#menu li a span{
display:block;
float:left;
background:url(images/menu_009_r.jpg) no-repeat right;
height:66px;
color:#d2eeff;
line-height:66px;
padding:0 18px 0 8px;
}
#menu li a:hover{
display:block;
float:left;
background:url(images/menu_009_h_l.jpg) no-repeat left;
height:66px;
}
#menu li a:hover span{
display:block;
float:left;
background:url(images/menu_009_h_r.jpg) no-repeat right;
color:#fff;
height:66px;
}
#menu li a.current{
display:block;
float:left;
height:66px;
color:#fff;
text-transform:uppercase;
font-size:11px;
font-weight:bold;
background:url(images/menu_009_h_l.jpg) no-repeat left;
line-height:66px;
padding:0 0 0 9px;
text-decoration:none;
}
#menu li a.current span{
display:block;
float:left;
background:url(images/menu_009_h_r.jpg) no-repeat right;
height:66px;
color:#fff;
line-height:66px;
padding:0 18px 0 8px;
}
</style>
</head>
<body>
<div id="menu">
<ul>
<li><a href="#" class="current"><span>首頁(yè)</span></a></li>
<li><a href="#"><span>精品腳本下載</span></a></li>
<li><a href="#"><span>網(wǎng)頁(yè)模板</span></a></li>
</ul>
</div>
</body>
</html>

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

相關(guān)文章

最新評(píng)論