DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> CSS入門知識 >> CSS詳解 >> 符合標准的中英文雙語導航菜單代碼
符合標准的中英文雙語導航菜單代碼
編輯:CSS詳解     

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xHtml1-strict.dtd">
<html XMLns="http://www.w3.org/1999/xHtml">
<head>
<meta http-equiv="Content-Type" content="text/Html; charset=utf-8" />
<meta name="KeyWords" content="導航,菜單" />
<meta http-equiv="Description" content="中英文雙語導航菜單的演示" />
<meta content="all" name="robots" />
<meta name="copyright" content="http://www.knowsky.com" />
<title>中英文雙語導航菜單knowsky.com</title>
<link href="css/main.css" rel="stylesheet" type="text/CSS" />
<style type="text/CSS" media="all">
#nav {
 padding: 10px 10px 0;
 font-size: 12px;
 font-weight: bold;
 font-family:Arial, Helvetica, sans-serif,宋體;
 margin: 1em 0 0;
 list-style:none;
}

#nav li {
 float: left;
 margin-right: 1px;
}

#nav li a,#nav li a:hover span {
 line-height: 20px;
 text-decoration: none;
 background: #DDDDDD;
 color: #666666;
 display: block;
 width: 80px;
 text-align: center;
 overflow:hidden;
}

#nav li a span {
    display:none;
}

#nav a:hover {
 position: relative;
}

#nav a:hover span {
 display:block;
 position:absolute;
 top: 0;
 left: 0;
 cursor: pointer;
}

#nav a:hover span {
    padding-top:2px;
}

#nav li a:hover,#nav li a:hover span {
 color: #FFFFFF;
 background: #DC4E1B;
}

#navbar{
 background: #DC4E1B;
 height: 8px;
 overflow: hidden;
 clear: both;
}
</style>
</head>
<body>
<div id="top">
  <h1>演示:中英文雙語導航菜單</h1>
  <div id="show">
   <ul id="nav">
  <li><a href="index.Html">Home<span>首 頁</span></a></li>
  <li><a href="about.Html">About us<span>關於我們</span></a></li>
  <li><a href="products.Html">Products<span>產品展示</span></a></li>
  <li><a href="services.Html">Services<span>售後服務</span></a></li>
  <li><a href="contact.Html">Contact<span>聯系我們</span></a></li>
 </ul>
 <div id="navbar"></div>
  </div>
</div>
</body>
</Html>

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved