`

经典悬浮

    博客分类:
  • html
 
阅读更多
    <div id="floater1" style=" background-color:#EEEEEE; z-index: 100; right:0px; top: expression(eval(document.body.scrollTop)+eval(document.body.clientHeight) - 550); visibility:visible; width: 100px; position: absolute; ">
         </div>


不如fixed

#indexad /* 头部固定 */
    {
        position: fixed;
        bottom: auto;
        bottom: 5px;
        right: 5px;
    }
    /* 上面的是除了IE6的主流浏览器通用的方法 */
    * html, * html body /* 修正IE6振动bug */
    {
        background-image: url(about:blank);
        background-attachment: fixed;
    }
    * html #indexad /* IE6 头部固定 */ /* IE6 头部固定 */
    {
        position: absolute;
        bottom: 0px;
        top: expression(eval(800+document.documentElement.scrollTop));
    }
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics