如何使导航菜单的原始网站背景固定且100%宽?

How to make the orginial website background of a navigation menu fixed and 100% wide?

我有一个响应式导航菜单,当您在智能手机或平板电脑上打开它时,网站的原始背景会固定以防止用户滚动:

.cover-bg {
    position: fixed;
}

但这也导致滚动条被隐藏,整个背景向左移动。 这不是想要的,真的很奇怪,我该如何解决这个问题?

Heres my website, open it on a smartphone and click on the menu. (antonrave.de - 已经修复)[​​=12=]

试试这个:

.cover-bg {
position: fixed;
left: 0;
right: 0; 
}