gpt4 book ai didi

html body extends after make element a negative position

转载 作者:太空宇宙 更新时间:2023-11-03 18:13:34 24 4
gpt4 key购买 nike

这是我的网站:SITE

调整窗口大小直到出现响应式设计,然后按顶部的“向右”按钮。右侧边栏时隐时现,消失时,栏位在left:-300px位置,可以向右滚动。为什么会这样?有了左侧边栏就OK了。附言使用鼠标中键滚动

最佳答案

overflow-x:hidden; 添加到:

@media screen and (max-width: 650px)
.content {

因此留下最终规则:

@media screen and (max-width: 650px)
.content {
margin: 0 auto;
width: 100%;
overflow-x: hidden;
}

关于html body extends after make element a negative position,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23214521/

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