html - Bootstrap fixed navbar is wider then html and causes x-overflow
问题描述
On my website https://bennetdev.de I have a fixed-top navbar which seems to be wider then my actual html tag. I think it is a problem between the navbar and my bootstrap modal but I don't know how to solve it. Due to the wider navbar a white space on the right side is shown when you visit the page, but disappears when opening the modal (through the contact button) and is not existent anymore until you refresh the page. Anyone knows how to fix this?
EDIT: There is no overflow because I hide the x-overflow on my body element but what I mean is the white bar on the right side, which would be a x-overflow without me hiding it
解决方案
您可以使用max-height: 210px;
来定义导航栏的高度。
无论如何,我建议上传一些我们可以看到的代码。
推荐阅读
- swiftui - swiftui 状态变量计数丢失了它存储的内容
- python - windows上的python权限被拒绝
- python - 从网站上的图表中抓取数据,只有将鼠标悬停在图表上才能看到
- python - Python 的“setuptools”不包括自动生成的 SWIG Python 文件
- laravel - 如何仅保护我的控制器的特定路由?
- java - java中如何获取LinkedList的头节点?
- parsing - 在 `std::string::String` 中找不到 .next() 方法
- swift - NSTokenfield 的 ChangeToken 颜色
- .net-core - 通过环境变量向 .net 控制台应用程序添加机密的最新消息是什么
- css - 如何使用 Jest 测试样式