標籤:style class c ext http a
<!DOCTYPE">
<html>
<head>
<title>導覽功能表-下拉</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
.nav,.nav ul{
margin:0;
padding:0;
list-style-type:none;
background-color:#8bd400;
border:1px solid #486b02;
float:left;
}
.nav li{
float:left;
width:150px;
background-color:#8bd400;
}
.nav li ul{
width:150px;
position:absolute;
left:-99999px;
}
.nav a{
display:block;
color:#2b3f00;
text-decoration:none;
border-right:1px solid #486b02;
border-left:1px solid #e4ffd3;
padding:5px 10px;
}
.nav li li{
float:none;
}
.nav li li a{
border-top:1px solid #e4fd3;
border-bottom:1px solid #486b02;
border-left:0;
border-right:0;
}
.nav li:last-child a{
border-right:0;
border-bottom:0;
}
ul a:hover{
color:#e4ffd3;
background-color:#6da203;
}
.nav li:hover ul{
left:auto;
}
</style>
</head>
<body>
<ul class="nav">
<li><a href="1.html">首頁</a></li>
<li><a href="1.html">產品中心</a>
<ul>
<li><a href="1.html">產品1</a><li>
<li><a href="1.html">產品2</a><li>
<li><a href="1.html">產品3</a><li>
<li><a href="1.html">產品4</a><li>
</ul>
</li>
<li><a href="1.html">新聞動態</a>
<ul>
<li><a href="1.html">新聞1</a><li>
<li><a href="1.html">新聞2</a><li>
<li><a href="1.html">新聞3</a><li>
<li><a href="1.html">新聞4</a><li>
</ul>
</li>
<li><a href="1.html">聯絡我們</a></li>
<li><a href="1.html">關於</a></li>
</ul>
</body>
</html>