我在我的 grails 应用程序中使用 twitter-bootstrap 3.3.5。
但问题是我的 gsp View 没有全屏显示。
如何在不干扰 Bootstrap 响应功能的情况下全屏显示此内容。
I wrote my main.gsp inside
<div class="container-fluid">
</div>
最佳答案
class .container-fluid
在 Bootstrap 中有左右填充。
您需要通过创建具有样式的新类来覆盖它:
padding-right:0px;
padding-left:0px;
例子:
<div class="container-fluid full">
</div>
.full{
padding-right:0px;
padding-left:0px;
margin:0;
}
关于html - 如何为我的 html 页面获取浏览器全屏宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39309060/