jquery博客纯css模拟淘宝详细页面底部固定

jquery博客,前两天有朋友问怎么整顶部固定的?
之前做过底部固定,其实原理一样,把之前代码中的bottom改成top,is ok了。
这个主要是纯css整的,IE9,火狐,谷歌都没什么问题,其他太匆忙,没看。
先把代码放出来
body {margin:0; padding:0 10px 0 10px; border:0; height:100%; overflow:auto;} #menu {right:0; top:0; width:100%; position:fixed; padding:10px; text-align:center; font-weight:bold; background:#ccc;}
* html #menu {position:absolute; right:16px; top:0;}
html {overflow:auto !important; overflow:hidden;}
在线效果代码DEMO

转自 jquery http://www.jqueryba.com/387.html

posted @ 2012-11-17 09:24  遗失的天空  阅读(208)  评论(0编辑  收藏  举报