Bootstrap - 当屏幕尺寸较小时删除填充或边距 - Bootstrap - Removing padding or margin when screen size is smaller

问题:

EDITED: Maybe I should ask which selector sets up the side padding when the screen is reduced to below 480px width?编辑:也许我应该问当屏幕宽度减小到 480 像素以下时哪个选择器设置侧边距? I have been browsing bootstrap-responsiveness.css for a while to locate this but nothing seems to affect this.我一直在浏览 bootstrap-responsiveness.css 一段时间来找到它,但似乎没有任何影响。

Original I basically want to remove any default padding or margin set for responsiveness on smaller device screens.原始我基本上想删除任何默认填充或边距设置以在较小的设备屏幕上响应。

I have a background color overridden on container-fluid selector and for larger screen they render perfectly 100% across the width but they the screen is reduced to smaller sizes, by default, Bootstrap seems to add a margin or padding on container-fluid or container .我在container-fluid选择器上覆盖了background color ,对于更大的屏幕,它们在整个宽度上完美呈现 100%,但屏幕缩小到更小的尺寸,默认情况下,Bootstrap 似乎在container-fluidcontainer上添加边距或填充.

<div class="container-fluid">
    <div class="row-fluid">
      test
    </div>
</div>

If I use custom css to overwriting Bootstrap's default style, what media query or selector should I overwrite to for removing this padding on smaller screens?如果我使用自定义 css 覆盖 Bootstrap 的默认样式,我应该覆盖哪些媒体查询或选择器以在较小的屏幕上删除此填充?


解决方案:

参考: https://stackoom.com/en/question/16rA3
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章