固定位置显示弹出层(兼容IE6,IE8,FF)
浏览:36日期:2024-07-28
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
相关文章:1. ReentrantReadWriteLock不能锁升级的原因总结2. 一文带你入门JDK8新特性——Lambda表达式3. 聊聊在Servlet中怎么上传文件4. 浅谈java switch如果case后面没有break,会出现什么情况?5. C语言强制类型转换怎么做?6. 当面试官问我ArrayList和LinkedList哪个更占空间时,我是这么答的(面试官必问)7. 浅谈ArrayList和LinkedList到底谁更快8. 如何用Jfinal连接多个数据库9. 小白必看toString(),String.valueOf,(String)强转10. 详解ArrayList的扩容机制