专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »Css教程 » 完全用CSS实现的中英文双语导航菜单 »正文

完全用CSS实现的中英文双语导航菜单

来源: 发布时间:星期日, 2008年12月14日 浏览:35次 评论:0
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"<a href=\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\" target=\"_blank\">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>\">
<html xmlns=\"<a href=\"http://www.w3.org/1999/xhtml\" target=\"_blank\">http://www.w3.org/1999/xhtml</a>\" xml:lang=\"en\" lang=\"en\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; char=utf-8\" />
<meta name=\"Keywords\" content=\"bilingual menu,中英文双语菜单\" />
<meta http-equiv=\"Description\" content=\"完全用CSS实现中英文双语导航菜单\" />
<title>完全用CSS实现中英文双语导航菜单</title>
<style type=\"text/css\">
a{
color: #FFFF99;
text-decoration: none;
}

a:hover{
color: #FFFFFF;
text-decoration: underline;
}

#nav{
padding: 10px 10px 0;
font-size: 12px;
font-weight: bold;
margin: 1em 0 0;
list-style:none;
}

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

.bi{
position: relative;
z-index: 0;
}

.bi:hover{
z-index: 99;
}

.bi:hover span{
visibility: visible;
top: 0;
left: 0;
cursor: poer;
}

.bi span{
position: absolute;
left: -999em;
visibility: hidden;
}

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

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

.bi:hover span{
padding-top: 2px;
}

#navbar{
background: #DC4E1B;
height: 8px;
overflow: hidden;
clear: both;
}

</style>
</head>
<body>
<div id=\"top\">
<ul id=\"nav\">
<li><a =\"bi\" href=\"#\">Home<span>首 页</span></a></li>
<li><a =\"bi\" href=\"abo#\">About us<span>有关我们</span></a></li>
<li><a =\"bi\" href=\"#\">Products<span>产品展示</span></a></li>
<li><a =\"bi\" href=\"#\">Services<span>售后服务</span></a></li>
<li><a =\"bi\" href=\"#\">Contact<span>联系我们</span></a></li>
</ul>
<div id=\"navbar\"></div>

</body>
</html>
标签:

相关文章

读者评论

  • 共0条 分0页

发表评论

  • 昵称:
  • 内容: