兼容浏览器 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>

原文地址:https://www.cnblogs.com/ken-admin/p/6405722.html