首页
韩国资源
酷站加油
我的展厅
设计名站
古典元素
推荐下载
设计欣赏
每周专访
招募精英
人才专区
网页教程
平面设计
编程开发
设计竞赛
当前位置:
首页
>
网页教程
>
HTMLCSS教程
> 正文
输入您的搜索字词
提交搜索表单
CSS模仿IE警告信息栏
来源:68design.net
2006年10月13日 11:15
网友评论:0条
点击:
把如下代码复制到<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>代码块中可更改信息栏中文字的内容和链接地址。
上一篇:
链接中的JS特效功能代码大放送
下一篇:
数字选中放大
【
收藏此页
】【
打印
】【
关闭
】
相关文章
我要点评
免责声明
:本站刊载此文不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。对本文有任何异议,请联络:68design#163.com
转载要求
:作者及来源信息必需保留。转载之图片、文件,链接请不要盗链到本站,且不准打上各自站点的水印。
关于我们
|
在线反馈
|
广告报价
|
友情链接
|
联系我们
|
免责声明
|
在线投稿
|
网站地图
Copyright © 2003-2007 68design.net, All Rights Reserve
【找网页设计师,当然上网页设计师联盟】