固定位置显示弹出层(兼容IE6,IE8,FF)

【字号: 日期:2024-07-28浏览:49作者:雯心
css样式:复制代码代码如下: style type='text/css' body{_background-attachment:fixed; _background-image:url(nothing);} #status-box{width:100px; height:100px; color:#FFF; background-color:black; position:fixed; _position:absolute; bottom:0;_top:expression(documentElement.scrollTop+document.documentElement.clientHeight-100); right:0;} #cs{background-color:#ccc;width:200px;height:120px;position:absolute;left:100px;top:100px;} /style body: 复制代码代码如下: body div id='cs'随页面走动/div div /div div id='status-box'静态层/div /body
相关文章: