页脚固定页面底部
来源:互联网 发布:日本和服的来源知乎 编辑:程序博客网 时间:2024/04/30 18:36
页脚固定页面底部 页面滚动也是底部 OK
<title>固定在页面底部的滚动公告</title>
<style type="text/css">
html,body,div ul{margin:0;padding:0;border:0; font-size:12px}
#gg{position:fixed;bottom:0;background:#000;width:100%;height:23px;z-index:9999;opacity:.60;filter:alpha(opacity=40);_bottom:auto;_width:100%;_position:absolute;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));}
#gg a {color:#FFF}
</style>
<script type="text/javascript">
(function($){
$.fn.extend({
Scroll:function(opt,callback){
if(!opt) var opt={};
var _this=this.eq(0).find("ul:first");
var lineH=_this.find("li:first").height(),
line=opt.line?parseInt(opt.line,10):parseInt(this.height()/lineH,10),
speed=opt.speed?parseInt(opt.speed,10):3000,//卷动速度,数值越大,速度越慢(毫秒)
timer=opt.timer?parseInt(opt.timer,10):3000;//滚动的时间间隔(毫秒)
if(line==0) line=1;
var upHeight=0-line*lineH;
scrollUp=function(){
_this.animate({
marginTop:upHeight
},speed,function(){
for(i=1;i<=line;i++){
_this.find("li:first").appendTo(_this);
}
_this.css({marginTop:0});
});
}
_this.hover(function(){
clearInterval(timerID);
},function(){
timerID=setInterval("scrollUp()",timer);
}).mouseout();
}
})
})(jQuery);
$(document).ready(function(){
$(".bulletin").Scroll({line:1,speed:500,timer:3000});//修改此数字调整滚动时间
});
</script>
</head>
<body>
<div style="text-align:center;">
<ul><li>1</li></ul>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
<ul><li>3</li></ul>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>123123123<br>
123123123<br>123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
<ul><li>4</li></ul>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>123123123<br>
123123123<br>123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
<ul><li>5</li></ul>
123123123<br>
123123123<br>
123123123<br>
123123123<br>
123123123<br>123123123<br>
123123123<br>
</div>
<div id="gg"><a href="/">固定在页面底部的滚动公告</a></div>
</body>
</html>
- 页脚固定页面底部
- 让页面底部固定
- 将页脚固定在页面底部
- 将页脚固定在页面底部
- 通过jQuery来实现页脚永远固定在页面底部的效果
- 页面footer始终固定页面底部
- css 页脚固定到底部
- 页脚固定于底部的方法
- 页面滚动到底部,悬浮条固定到页面底部。
- 如何将页脚固定在页面底部
- 如何将页脚固定在页面底部
- 如何将页脚固定在页面底部
- 将页脚固定在页面的底部
- 如何将页脚固定在页面底部
- 如何将页脚固定在页面底部
- 如何将页脚固定在页面底部
- 让页面底部浮动起来固定起来
- 如何将页脚固定在页面底部
- 完整的Sring配置
- KMP算法
- 搜索引擎是如何判断有价值的文章
- Windows 8不得不说的13个特色功能
- 分析称ARM架构将在2013年具备挑战X86资格
- 页脚固定页面底部
- error C2780: “void std::sort(_RanIt,_RanIt,_Pr)”: 应输入 3 个参数,却提供了 2 个
- 将matlab的GUI转换成可执行文件exe
- 在Visual Studio中集成HLSL编译器
- 日本五大电子巨企沦陷:无法适应移动互联网年代
- 3D分析之Functional Surface工具箱
- “双十一”背后的隐形战场:电商后台IT技术大检阅
- poj 3497 or hdu 2333
- 开发者告诉你为什么Android是最好的开发平台