zoukankan      html  css  js  c++  java
  • 哎~~~纠结死了的终于解决的i6的fixed属性

    css部分: 

    * html .backtop /* IE6 底部固定 */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));}
    .backtop{bottom:300px;
    height: 120px;
    left: 0;
    margin-left:10px;
    position: fixed;
    visibility: visible;
    120px;}

    .gotop{
    background: url("http://www.wanbu.com.cn/images/v7/tsw_ad.gif") no-repeat scroll 0 0 transparent;
    display: block;
    height: 120px;
    120px;}

     html部分:

    <div id="ad" class="backtop">

    <DIV onclick="hidead();" style="FONT-SIZE: 9pt; CURSOR: hand; "align=right>关闭×</DIV>
    <a href="http://www.wanbu.com.cn/changzheng.php?aid=203" target="_blank" class="gotop"></a>
    </div>


    <script type="text/javascript">
    function hidead()
    {document.getElementById("ad").style.display="none";} 

  • 相关阅读:
    Python之MySQLdb
    Python 小方法
    Python文件打包
    禅道使用教程
    Linux命令
    安卓自动化测试monkey
    深入分析Java中的中文编码问题
    Linux命令搜索
    文件上传的类型选择控制
    MySql格式化日期函数
  • 原文地址:https://www.cnblogs.com/boyice/p/2124113.html
Copyright © 2011-2022 走看看