zoukankan      html  css  js  c++  java
  • 兼容浏览器 div固定浏览器窗口底部 浮动div

    css内容:

     <style type="text/css">

    #ken_BB

    {

    padding-right:30px;

    text-align: center;

    color:Yellow;

    vertical-align: middle;

    font-size: 20px;

    z-index: 999px;

    left: 0px;

    position: fixed;

    bottom: 0;

    background: #000;

     100%;

    height: 40px;

    line-height: 40px;

    z-index: 9999;

    opacity: .90;

    filter: alpha(opacity=90);

    _bottom: auto;

            _ expression(document.body.clientWidth);

    _position: absolute;

    overflow: hidden;

    _top: expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight- (parseInt(this.currentStyle.marginTop, 10)||0)-(parseInt(this.currentStyle.marginBottom, 10)||0)));

    }

    #ken_BB a

    {

    color: #fff;

    letter-spacing: 2px;

    }

    #ken_BB a img

    {

    padding-bottom: 3px;

    vertical-align: middle;

    }

    </style>

    html内容:

    <html xmlns="http://www.w3.org/1999/xhtml">

        <head>

        <title>410838107--固定浏览器底部Div</title>

        </head>

        <body>

    <div style="height:2000px;">中国佳酒招商网</div>

    <div id="ken_BB">

          <div ><a  target="_blank">爱玩,但不要累,刺激,但不危险,努力工作,不枉此生,爱dota,爱美女</a> </div>

        </div>

    </body>

    </html>

  • 相关阅读:
    原生JS实现日历
    重复的事情让机器来做,简化的思想
    Ext3.1的一些使用讨论
    JS使用Crypto实现AES/ECS/zero-padding加密
    一些提升效率的小知识
    一些很有意思的JS现象
    Tiny Linux -- tce-load
    python sqlalchemy mysql 自动映射
    python 反射
    python 动态导包
  • 原文地址:https://www.cnblogs.com/ken-admin/p/6405722.html
Copyright © 2011-2022 走看看