gpt4 book ai didi

html - Chrome 自动为 body 元素添加高度

转载 作者:行者123 更新时间:2023-11-28 13:50:26 24 4
gpt4 key购买 nike

Chrome 在我网站的所有页面上为我的元素附加了一个高度。它不会在 Firefox 中执行此操作。无论页面的高度如何,它总是将 height: 958px 添加到 body 元素。这是 chrome 浏览器读取它的方式:

<body class="other" style="height: 958px">

但是,在 Firefox 中,它不会将高度附加到正文中,它只是读取:

<body class="other">

我的 CSS 如下:

body {
padding-top: 60px;
}

body.other {
background-image: url( "/assets/bg_grey_noise_more.png" );
}

我将 Twitter Bootstrap 用于我的 UI 框架。

最佳答案

看起来它是由 hideAddressBar() 函数添加的。

关于html - Chrome 自动为 body 元素添加高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11439714/

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