gpt4 book ai didi

css - CSS 宽度为 :100% gets shorter by increasing the IE zoom level 的 div

转载 作者:太空宇宙 更新时间:2023-11-04 15:10:22 26 4
gpt4 key购买 nike

我有一个带有以下 CSS 的 div

        div.bottom {
position: absolute;
bottom: 0px; left: 0px;
height: 13px; width: 100%;
background-image: url("../../image/icon/login_bottom.gif");
background-repeat: repeat-x;
}

当 IE 缩放级别为 100% 时,此 div 覆盖了 IE 窗口的整个宽度,但当我增加缩放级别时,此 div 变得越来越短。

我希望所有缩放级别的宽度都为 100%,以覆盖整个窗口的宽度。任何帮助将不胜感激。

最佳答案

它变短了,因为你告诉 div 为 100%,如果你放大 150%,它将保持在 IE 的 100% 宽度,所以你放大得越多,它看起来越小。不确定,但这是我的想法。

我不知道你的目的是什么,但可以使用 css scale

#div { zoom: 3; -moz-transform: scale(3); -moz-transform-origin: 0 0 }

关于css - CSS 宽度为 :100% gets shorter by increasing the IE zoom level 的 div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15381000/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com