gpt4 book ai didi

php - 除非触发 PHP 错误,否则 CSS 溢出消失

转载 作者:行者123 更新时间:2023-11-28 09:18:51 26 4
gpt4 key购买 nike

我在使用 PHP 和 CSS 时遇到了一些奇怪的行为。如果我的 PHP 代码中没有出现错误(例如,当我关闭错误报告时),我在页面上的溢出将完全隐藏并且不会让我滚动。

这就是我的意思:

打开错误报告:

enter image description here

没有它:

enter image description here

如您所见,它无缘无故地完全消失了。我根本没有更改 CSS。我在网上做了一些挖掘,只看到过一次这样的报道。该报告可以在这里找到,所有 PHP 开发人员所做的就是否认它是一个错误... https://bugs.php.net/bug.php?id=35676

有人知道为什么会这样吗?

最佳答案

给你http://jsfiddle.net/0zrso7x2/2/

*{
margin: 0px;
}
body, html{
height: 100%;
}
body{
background: rgba(238,238,238,.98);
width: 10000px;
z-index: 1;
}

.left-sidebar{
width: 200px;
height: calc(100% - 20px);
position: absolute;
left: 0px;
top: 0px;
background: #272727;
border-right: 1px solid #3D3D3D;
}

关于php - 除非触发 PHP 错误,否则 CSS 溢出消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26185613/

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