效果體驗:http://hovertree.com/texiao/mobile/5.htm
可以使用手機浏覽器查看體驗效果。
以下是手機底部導航欄完整代碼,HTML文件代碼:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>手機底部導航欄 - 何問起</title><base target="_blank"/>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="http://hovertree.com/texiao/mobile/5/hovertreebottom.css" media="all">
</head>
<body>
<div class="bg"></div>
<div class="hovertreebottom">
<nav>
<div id="hovertreebottom_ul">
<ul class="box">
<li>
<a href="javascript:;" class=""><span>何問起</span></a>
<dl>
<dd><a href="http://hovertree.com"><span>首頁</span></a></dd>
<dd><a href="http://hovertree.com/texiao/"><span>特效</span></a></dd>
<dd><a href="http://hovertree.com/menu/aspnet/"><span>ASP.NET</span></a></dd>
<dd><a href="http://hovertree.com/down/"><span>源碼下載</span></a></dd>
<dd><a href="http://hovertree.com/hvtart/bjae/j0x9ww3x.htm"><span>原文</span></a></dd>
</dl>
</li>
<li>
<a href="javascript:;" class=""><span></span></a>
<dl>
<dd><a href="http://"><span>首頁</span></a></dd>
<dd><a href="http:///a/bjad/5vw5k0au.htm"><span>CSS3旋轉</span></a></dd>
<dd><a href="http://tool./"><span>工具</span></a></dd>
<dd><a href="http:///menu/jquery/"><span>jQuery</span></a></dd>
</dl>
</li>
<li>
<a href="javascript:;" class="on"><span>HoverTree</span></a>
<dl>
<dd><a href="http://m.hovertree.com/"><span>謎語</span></a></dd>
<dd><a href="http://m.hovertree.com/yzdd/bjae/a8rbum7w.htm"><span>看圖回答</span></a></dd>
<dd><a href="http://m.hovertree.com/miyu/bjae/m81a842g.htm"><span>何問起(猜字)</span></a></dd>
<dd><a href="http://hovertree.com/menu/sqlserver/"><span>Sql Server</span></a></dd>
</dl>
</li>
</ul>
</div>
</nav>
<div id="hovertreebottom_masklayer" class="masklayer_div on"> </div>
</div>
<script src="http://hovertree.com/texiao/mobile/5/hovertreebottom.js"></script>
<script type="text/javascript">
hovertreebottom.bindClick(document.getElementById("hovertreebottom_ul").querySelectorAll("li>a"), document.getElementById("hovertreebottom_masklayer"));
</script>
</body>
</html>
當一級菜單的樣式為 class="on" 時,默認是自動彈出子菜單
例如
<a href="javascript:;" class="on"><span>HoverTree</span></a>