萬盛學電腦網

 萬盛學電腦網 >> 網頁制作 >> DivCSS教程 >> 純css實現藍色圓角效果水平導航菜單代碼介紹

純css實現藍色圓角效果水平導航菜單代碼介紹

我們為大家收集整理了關於純css實現藍色圓角效果水平導航菜單代碼,以方便大家參考。

代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>藍色圓角水平導航菜單</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>首頁</span></a></li>
<li><a href="#"><span>精品腳本下載</span></a></li>
<li><a href="#"><span>網頁模板</span></a></li>
</ul>
</div>
</body>
</html>

希望大家可以學會純css實現藍色圓角效果水平導航菜單代碼.想了解更多精彩內容,請關注我們的網站!

相關推薦:

divcss立體滾動條亮邊的顏色介紹 

copyright © 萬盛學電腦網 all rights reserved