【问题标题】:how to make sticky footer that is zoomable如何制作可缩放的粘性页脚
【发布时间】:2013-12-27 04:16:03
【问题描述】:

我有这段代码,页脚看起来不错,但是当我放大页面时,页脚开始迅速增加高度,并且覆盖了整个页面。如果我放大页面,我希望页脚高度相同。 :(谢谢你的帮助

    <style>
        footer
    {
        position: absolute;
        width: 100%;
        height: 75px;
        background:#808284;    
        bottom:0;


    }
    </style>


        <footer>
        </footer>

【问题讨论】:

    标签: javascript html css


    【解决方案1】:

    目前这在纯 CSS/HTML 中是不可能的

    Disable zoom on a div, but allow zoom on the page (an alternate div)

    如果该链接中的技术不起作用,我相信您可以为窗口调整大小 javascript 事件设置一个侦听器,并从那里按比例保持您的固定高度。

    【讨论】:

      猜你喜欢
      • 2013-05-29
      • 2015-05-18
      • 2020-03-24
      • 1970-01-01
      • 1970-01-01
      • 2021-02-22
      • 2017-03-23
      • 2013-04-18
      • 2015-10-16
      相关资源
      最近更新 更多