Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Bootstrap 3.0.0在row类上添加额外空间_Html_Css_Twitter Bootstrap_Twitter Bootstrap 3 - Fatal编程技术网

Html Bootstrap 3.0.0在row类上添加额外空间

Html Bootstrap 3.0.0在row类上添加额外空间,html,css,twitter-bootstrap,twitter-bootstrap-3,Html,Css,Twitter Bootstrap,Twitter Bootstrap 3,我正在使用Bootstrap3.0.0。我试图让一行内容跨越整个屏幕(而不是将其放在一个“容器”中,在容器中它将与其余内容居中) 由于某种原因,当我这样做时,该行在页面末尾添加了一个额外的空间,导致出现水平滚动条。该空间约为5px 我的代码如下所示: <body> <div class="row"> <div class="col-xs-6"> hello

我正在使用Bootstrap3.0.0。我试图让一行内容跨越整个屏幕(而不是将其放在一个“容器”中,在容器中它将与其余内容居中)

由于某种原因,当我这样做时,该行在页面末尾添加了一个额外的空间,导致出现水平滚动条。该空间约为5px

我的代码如下所示:

    <body>
        <div class="row">
            <div class="col-xs-6">
                hello
            </div>
            <div class="col-xs-6">
                Hello
            </div>
        </div>
    <script src="js/bootstrap.min.js"></script>
</body>

你好
你好
我没有做任何修改,也没有自定义CSS。基本上我想改变行的背景颜色,但我希望它跨越整个页面


谢谢

这是BS 3中的一个已知问题-

您可以使用

.row {
  margin-left: 0px;
  margin-right: 0px;
}

这是BS 3中的已知问题-

您可以使用

.row {
  margin-left: 0px;
  margin-right: 0px;
}

Skelly是对的!有了这个解决方案,你的问题将解决
但是,如果您看到您的COL粘在左侧或右侧,并且不居中,您可以使用此代码(对Skelly代码稍作更改)


Skelly是对的!有了这个解决方案,你的问题将解决
但是,如果您看到您的COL粘在左侧或右侧,并且不居中,您可以使用此代码(对Skelly代码稍作更改)


你可以很容易地添加
.container{max width:100%!important;}
。提醒我不要访问你的站点,不过…在1440p显示器上查看这样的站点太糟糕了…:)你可以很容易地添加
.container{max width:100%!important;}
。不过提醒我不要访问你的网站。。。在1440p显示器上查看这样的网站简直太糟糕了……:)