用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" xml:lang="en"> <head> <meta name="keywords" content="武鸣人网站,武鸣信息网,武鸣本地网,武鸣信息资源平台,减肥,健身,励志,励志语录,js特效,网页特效,www.wuming.ren"> <meta name="description" content="欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>CSS实现的中英文双语导航菜单_武鸣人</title> <style type="text/css"> a{ color: #FFFF99; text-decoration: none; } a:hover{ color: #FFFFFF; text-decoration: underline; } #wuming_ren_nav{ padding: 10px 10px 0; font-size: 12px; font-weight: bold; margin: 1em 0 0; list-style:none; } #wuming_ren_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; } #wuming_ren_nav li a,.bi:hover span{ line-height: 20px; text-decoration: none; background: #DDDDDD; color: #666666; display: block; width: 80px; text-align: center; } #wuming_ren_nav li a:hover,.bi:hover span{ color: #FFFFFF; background: #DC4E1B; } .bi:hover span{ padding-top: 2px; } #wuming_ren{ background: #DC4E1B; height: 8px; overflow: hidden; clear: both; } </style> </head> <body> <a href="https://www.wuming.ren">武鸣人</a>,各种信息资源免费发布,分享励志语录经典短句,减肥健身常识,各种js特效代码。网站很好记住,wuming.ren(武鸣拼音.ren域名后缀)<hr> <!--欢迎来到武鸣人信息资源平台,各种信息免费发布,资源共享合作共赢,分享互联网流行的励志语录经典短句,减肥健身健康小常识及打卡记录,收集各种js特效代码。--> <script type="text/javascript" src="https://www.wuming.ren/ad/tc.js"></script> <script type="text/javascript" src="https://www.wuming.ren/ad/a.js"></script> <div id="www_wuming_ren"> <ul id="wuming_ren_nav"> <li><a href="https://www.wuming.ren">Home<span>武鸣人</span></a></li> <li><a href="https://www.wuming.ren">About us<span>导航菜单2</span></a></li> <li><a href="https://www.wuming.ren">Products<span>导航菜单3</span></a></li> <li><a href="https://wuming.ren">Services<span>导航菜单4</span></a></li> <li><a href="https://wuming.ren">Contact<span>导航菜单5</span></a></li> <li><a href="https://wuming.ren">Home<span>导航菜单6</span></a></li> <li><a href="https://wuming.ren">About us<span>导航菜单7</span></a></li> <li><a href="https://wuming.ren">Products<span>导航菜单8</span></a></li> <li><a href="https://www.wuming.ren">Services<span>导航菜单9</span></a></li> <li><a href="https://www.wuming.ren">Contact<span>导航菜单10</span></a></li> <li><a href="https://www.wuming.ren">Home<span>导航菜单11</span></a></li> </ul> </div> <div id="wuming_ren"></div> </body> </html>
本文来自武鸣人网站,转载请注明出处