Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/35.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 fullpage.js引导中的填充问题_Html_Css_Twitter Bootstrap_Fullpage.js - Fatal编程技术网

Html fullpage.js引导中的填充问题

Html fullpage.js引导中的填充问题,html,css,twitter-bootstrap,fullpage.js,Html,Css,Twitter Bootstrap,Fullpage.js,我有一个我已经实现了fullpage.js的网页,但问题是左侧填充和右侧填充会自动添加到容器流体中,如果我删除了它,左侧会有一些空白。仅当我在容器流体中添加行时,此问题才会出现 html <div class="container-fluid"> <div id="fullpage"> <div class="row section" id="home">HomePage</div> <div clas

我有一个我已经实现了
fullpage.js
的网页,但问题是
左侧填充
右侧填充
会自动添加到
容器流体
中,如果我删除了它,左侧会有一些空白。仅当我在
容器流体中添加
时,此问题才会出现

html

<div class="container-fluid">
    <div id="fullpage">
        <div class="row section" id="home">HomePage</div>
        <div class="row section" id="products">Products</div>
        <div class="row section" id="pricing">Pricing</div>
        <div class="row section" id="contact">Contact</div>
    </div>
    <div id="footer">Footer</div>
</div>

主页
产品
定价
接触
页脚

PS:使用引导4

。容器
s意味着与引导中的
一起工作。他们有一个聪明的系统,包括边距和填充物,它们相互抵消,但在所有设备上都很好看

最简单的方法是将
.container fluid
放在
#fullpage
内,而不是相反

作为替代,如果出于各种原因,您不想(或不能)更改标记,您可以将负边距从
.row
s转移到
#fullpage

#fullpage {
   margin-left: -15px;
   margin-right: -15px;
}
#fullpage>.row {
   margin-left: 0;
   margin-right: 0;
}

添加代码片段或实时链接。就是这样。谢谢你,巴德:)