+ -
当前位置:首页 → 问答吧 → 淘宝的固定导航条是怎么实现的啊?

淘宝的固定导航条是怎么实现的啊?

时间:2011-03-26

来源:互联网

http://yoryu.tmall.com/shop/view_shop.htm?prc=2

就是这个网页下面的固定导航条是怎么实现的?

作者: guoyifeng   发布时间: 2011-03-26

这两个例子都是实现底部浮动固定层的,请看看

http://www.websjy.com/bbs/viewthread.php?tid=2739

http://www.websjy.com/bbs/viewthread.php?tid=8921

上面两种对比 ,还是觉得下面的那个要好一些

作者: happy175   发布时间: 2011-03-26

HTML code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style>
#foot{position:fixed;_position:absolute;bottom:0px;_bottom:0px;_margin-top:expression(this.style.pixelHeight+document.documentElement.scrollTop)}
</style>
</head>
    <body style="height:9000px;">
      <div id="foot">test</div>
    </body>
</html>


淘宝这个ie6不行 。

作者: zell419   发布时间: 2011-03-26

热门下载

更多