CSS模仿IE警告信息栏
(
重构教程
)
『本文地址:
http://v1.djasp.net/Static/zh/2010.stm
』
把如下代码复制到<body></body>之间
<div id="infobar" align=center><a rel="nofollow" href="index.htm">CSS模仿IE警告信息栏-点击查看此特效源代码</a></div>
把如下代码复制到<head></head>之间
<style type="text/css"> body { margin: 0 !important; padding: 0 !important; } /* A fake IE information bar */ #infobar { font: message-box; } /* Please adjust the values if the infobar is not looking good */ #infobar a, #infobar a:link, #infobar a:visited, #infobar a:active { display: block; float: left; clear: both; width: 100%; color: InfoText; background: InfoBackground no-repeat fixed .3em .3em; padding: .60em .3em .40em 2em; border-bottom: .16em outset; text-decoration: none; cursor: default; } #infobar a:hover { color: HighlightText; background: Highlight no-repeat fixed .3em .3em; } /* A fake viewplot for IE information bar */ #viewplot { width: 100%; height: expression(this.parentNode.offsetHeight - this.offsetTop); overflow-x: hidden; overflow-y: scroll; padding: 1em; /* Please set this to the value as that of your <body> */ } </style>
使用说明:<head></head>代码块中的"60em"为信息栏中文字离信息栏上边的距离、"40em"为信息栏中文字离信息栏下边的距离,可自行更改,更改这两处地方也就相应更改了信息栏的厚度,在<body></body>代码块中可更改信息栏中文字的内容和链接地址。
相关文章
对不起,资料整理中..
本文统计
上一篇:
组合CLASS来完成网页布局风格
下一篇:
选中数字放大的CSS效果
文章类别:
重构教程
最后更新:
2006-10-14 9:25:50
浏览次数:
本栏最新文章
选中数字放大的CSS效果
组合CLASS来完成网页布…
Li的横向排列自适应宽度问题
谈谈网页制作之网页布局
用CSS实现的一个字符显…
CSS仿淘宝首页导航条按…
CSS制作的三级下拉菜单
本栏推荐文章
Html+Css做圆角表格(不用…
XHTML为何不能设置span…
随机酷站设计秀
kpic
ggw
howdon
zmt
sentidoweb
daewoo
todo-nottodo
cocowa
ohmychicken
outofmedia
网站导航
|
走进点击
|
点击作品
|
服务项目
|
联系我们
|
设为首页
|
加入收藏
|
在线留言
点击设计
© Version: 2.3 WEB执行标准:W3C XHTML 1.1 / CSS 2.0 / Ajax
本站全面兼容 IE、FireFox、Netscape、Opera 等内核的浏览器
版权所有:点击设计
www.djasp.Net
E-mail:djasp@qq.com
全程开发:秋水天子(Folier) QQ:39886616
浙ICP备05074939号