gpt4 book ai didi

html - 在 ie9 中 Bootstrap 空白空间

转载 作者:行者123 更新时间:2023-11-28 04:55:41 26 4
gpt4 key购买 nike

<section class="content">
<div class="row">
<aside class="hidden-xs hidden-sm col-md-1 col-lg-1 fixed-left-bar">
<span class="about">about</span>
</aside>
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 content-container">
<div class="hidden-xs hidden-sm col-md-6 col-lg-6 background"></div>
</div>
<aside class="hidden-xs hidden-sm col-md-3 col-lg-3 fixed-right-bar">
</aside>
</div>
</section>

div.background 应该放在 aside.fixed-right-bar 旁边,但是 page 做滚动条。在 chrome 中成功运行。我怎样才能删除那个空格?

enter image description here

最佳答案

这是因为 .row 调用,左右两边都取负边距。

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

将您的代码包装在 containercontainer-fluid 类中。

<section class="content container-fluid">
<div class="row">
<aside class="hidden-xs hidden-sm col-md-1 col-lg-1 fixed-left-bar">
<span class="about">about</span>
</aside>
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 content-container">
<div class="hidden-xs hidden-sm col-md-6 col-lg-6 background"></div>
</div>
<aside class="hidden-xs hidden-sm col-md-3 col-lg-3 fixed-right-bar">
</aside>
</div>
</section>

关于html - 在 ie9 中 Bootstrap 空白空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40417866/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com