gpt4 book ai didi

jquery - 高度在 Firefox 中不起作用

转载 作者:行者123 更新时间:2023-11-28 12:04:25 25 4
gpt4 key购买 nike

我有 Firefox 25.0,但我的 div 高度不正确。在我的 CSS 中:

#page {
background-color: rgba(255,255,255,0.9);
width: 98%;
height: 87%;
position: absolute;
left: 1%;
top: 12%;
display: table;
padding-bottom: 1px;
}

窗口变小时,高度超过87%

我已经尝试过 jQuery 替代方案:

$(document).ready(function() {
var contentheight = $("#most").height();
var contentheightt = contentheight * .87;
contentheightt = contentheightt+"px";
$("#page").css("height",contentheightt);
});

在 Firefox 中均无效,但在 Safari 和 Chrome 中有效。

这是我的页面:http://sdgr.comule.com/sd/

最佳答案

对于 firefox,您需要在您的#page.txt 类中添加以下 css -

position: absolute; 
overflow-y: scroll;
left: 500px;

根据要求更改左值。

关于jquery - 高度在 Firefox 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19757475/

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