菜单 鼠标移过中文文字变英文字母

样式一:简单型

<a href="product.asp" style="color:#8F8F8F;" onMouseOver="this.innerHTML='Product'" onMouseOut="this.innerHTML='产品展示'">产品展示</a>

 

样式二:复杂型

<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="bilingual menu,中英文双语菜单" />
<meta http-equiv="Description" content="完全用CSS实现的中英文双语导航菜单" />
<meta content="all" name="robots" />
<meta name="author" content="forestgan" />
<meta name="copyright" content="
http://www.forest53.com" />
<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: pointer;
}
.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>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top">
  <ul id="nav">
  <li><a class="bi" href="index.html">Home<span>红色黑客</span></a></li>
  <li><a class="bi" href="about.html">About us<span>萧萧小雨</span></a></li>
  <li><a class="bi" href="products.html">Products<span>诘屈聱牙</span></a></li>
  <li><a class="bi" href="services.html">Services<span>艾克司令</span></a></li>
  <li><a class="bi" href="contact.html">Contact<span>红色冬天</span></a></li>
  <li><a class="bi" href="index.html">Home<span>草木之人</span></a></li>
  <li><a class="bi" href="about.html">About us<span>风中剑影</span></a></li>
  <li><a class="bi" href="products.html">Products<span>修罗化蝶</span></a></li>
  <li><a class="bi" href="services.html">Services<span>垃圾青蛙</span></a></li>
  <li><a class="bi" href="contact.html">Contact<span>我太低调</span></a></li>
  <li><a class="bi" href="index.html">Home<span>闭门苦研</span></a></li>
 
</ul>
 <div id="navbar"></div>

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值