当前位置:   article > 正文

html css html底部固定_html 底部安全区适配代码

html 底部安全区适配代码
  1. <style type="text/css">
  2. html, body, div { margin:0; padding:0; border:0; font-size:100%; background:transparent; }
  3. body { background:#f2f2f2; font:12px 宋体, Verdana, Tahoma, Lucida Grande, Arial, sans-serif; color:#000; }
  4. #gg { position:fixed; bottom:0; background:#000; width:100%; height:23px; line-height:23px; z-index:9999; opacity:.60;
  5. filter:alpha(opacity=60); _bottom:auto; _width:100%; _position:absolute;
  6. _top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-
  7. (parseInt(this.currentStyle.marginTop, 10)||0)-(parseInt(this.currentStyle.marginBottom, 10)||0)));
  8. }
  9. #gg a { color:#fff; font-size:13px; letter-spacing:2px; }
  10. </style>
  11. </head>
  12. <body>
  13. <div style="height:2000px;">页面</div>
  14. <div id="gg">
  15. <div ><a target="_blank">底部固定</a> </div>
  16. </div>
  17. </body>
  18. </html>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/448605?site=
推荐阅读
相关标签
  

闽ICP备14008679号