Bootstrap Jumbotron 没有变成 Body 的全宽 [英] Bootstrap Jumbotron not becoming full width of Body
问题描述
我正在尝试将我的 Jumbotron 修复为屏幕的全宽,但不知何故它需要一个 15px padding-left, padding-right
.如果我移除内边距,水平滚动条就会出现 30px 右边距
.我使用的是默认的 Bootstrap 版本 3.0.3 和默认的 VS2013 布局.根据这个 link 我删除了所有 .container
之外的 Jumbotron 我的页面看起来像这样
<div class="navbar navbar-inverse navbar-fixed-top">.... 导航内容</div><div class="jumbotron specialjum"><div class="over container body-content">....页面标题和其他东西
<p class=只是容器主体内容">... 文章主体</p>
///////////////////////////////////////////////
body {填充顶部:50px;填充底部:20px;/*背景:url(../Images/ps_neutral.png")重复;*/}/* 设置填充以防止内容碰到边缘 */.body 内容 {左边距:15px;padding-right: 15px;}.只是 {文本对齐:对齐;}.specialjum {背景:url('http://fc00.deviantart.net/fs70/i/2013/339/7/1/princess_kenny_korosu_by_theshadowstone-d6wu2zo.png')中心;颜色:#fff;背景尺寸:封面;}
Firefox + Chrome + IE10 结果 ===|================|====
关于如何修复布局的任何想法?我还没有接触过使用 Nuget 更新的 Bootstrap CSS.
解决方案很简单.这就是我如何划分它:
<div class="navbar navbar-inverse navbar-fixed-top">.... 导航内容</div><div><====================这个 Div 包装超大屏幕<div class="jumbotron specialjum"><div class="over container body-content">....页面标题和其他东西