css - 导航中的 mainmenu.area 导致移动 View 右侧出现白色间隙

标签 css mobile twitter-bootstrap-3 nav

白色差距似乎是一个热门问题。但我似乎无法用常规解决方案解决它。

网站链接 https://bomengeduld.github.io/debadkamers/

链接到 style.css:https://github.com/bomengeduld/debadkamers/blob/master/style.css

(use inspector in mobile view) to detect the bug:

.mainmenu-area {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999999;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}


html,
body {

width: 100%;
height: 100%;
margin: 0px !important;
padding: 0px !important;

}

When I use the following it gets fixed, but then I loose the styling of menu bar.

overflow-x: hidden;

enter image description here

enter image description here

最佳答案

下面解决了我的问题

.container {
   overflow: hidden;
}

关于css - 导航中的 mainmenu.area 导致移动 View 右侧出现白色间隙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48764881/

相关文章:

html固定位置IE问题

javascript - 打印 Bootstrap 模态数据

我网站的 CSS 在 chrome 中损坏

javascript - 如何在 Bootstrap 中重新排列垂直列?

html - 难以将输入和带边框的文本居中

reactjs - 如何检查 React 应用程序是否正在桌面或移动设备上查看

java - 使用 Retrofit 2 获取未知数据集

mysql - 登录后跟踪不同类型的用户

html - 搜索字段问题 : Can't Insert Search Field Side by Side with the Search Font Awesome Logo Properly

css - 具有自动高度且无垂直滚动的 iframe