2008-02-22
CSS模仿IE警告信息栏
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>51du.cn-代码演示专用页面</title>
<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 url(http://www.51du.cn/img/warning.gif) no-repeat fixed .3em .3em;
padding: .45em .3em .45em 2em;
border-bottom: .16em outset;
text-decoration: none;
cursor: default;
}
#infobar a:hover {
color: HighlightText;
background: Highlight url(http://www.51du.cn/img/warning2.gif) 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>
<body>
<div id="infobar" align=center><a rel="nofollow" href="http://www.51du.cn/">欢迎访问独来读网的BLOG</a></div>
</body>
</html>
- 浏览: 34856 次
- 性别:

- 来自: 济南

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
jquery起点教程
zfms 写道jquery其实比较简单的,如果js不错的话,学jquery应该没 ...
-- by isky -
大家谈谈用jquery的感受.. ...
楼主,真是Jquery强人。 我们建了一个jquery的圈子,希望楼主加入。 h ...
-- by chenzengpeng -
jQuery使用手册 三:CSS ...
$(#a).html()这样就能取到了,多看看api,很基础的东西
-- by zfms -
jQuery使用手册 三:CSS ...
我关心的是如何获取<div id="a" style="backgroun ...
-- by dmewy -
使用 jQuery 简化 Ajax 开 ...
这个帖子不错哦..
-- by dmewy






评论排行榜