运行代码 缩小
汉王
HTML代码
复制 格式化 注释 注释 清空
放大
AخA
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<title>固定在页面底部的滚动公告</title>
5
<meta http-equiv="content-type" content="text/html;charset=gb2312">
6
<style type="text/css">
7
html,body,div ul{margin:0;padding:0;border:0;font-size:100%;background:transparent;}
8
ul{list-style:none;}
9
a{text-decoration:none;}
10
body{background:#f2f2f2;font:12px 宋体,Verdana,Tahoma,Lucida Grande,Arial,sans-serif;color:#000;}
11
#gg{position:fixed;bottom:0;background:#000;width:100%;height:23px;line-height:23px;z-index:9999;opacity:.60;filter:alpha(opacity=60);_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)));}
12
#gg a{color:#fff;font-size:13px;letter-spacing:2px;}
13
.close a{float:right;margin:0 10px 0 0;padding:0 10px 0 10px;}
14
.bulletin{float:left;height:23px;color:#fff;margin:0 0 0 20px;background:url(//ku.shouce.ren/files/images/201601/56a3697c7e454.gif) no-repeat;min-height:23px;overflow:hidden;}
15
.bulletin li{height:23px;padding-left:25px;}
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
x
 
1
JS代码
复制 格式化 注释 注释 清空
放大
JS代码...
xxxxxxxxxx
1
 
1
名称
底部工具条,支持动画关闭,Li列表滚动,jQuery版
分类
jQuery实例
描述
预览效果时左下角会提示错误,而且看不到效果,刷新一下就可以看到效果了;在实际使用中,不会出现这样的问题。这款网页底部的工具栏基于jQuery版,可关闭,关闭时候还有动画效果呢,另外它还可以让文字滚动,一条一条的公告循环滚动,感...
收藏