html - Bootstrap 4 : remove columns margin gutter

标签 html css angular bootstrap-4

<分区>

我在 Angular 元素中使用 Bootstrap 4,我注意到在使用 .col 类时框架会自动留出一些左边距。 问题是我无法删除该边距,因为即使检查员也告诉我边距是 none

screen

我该怎么做?

最佳答案

no-gutters 类添加到 .row

这消除了排水沟。

或者,您可以将类 p-0 用于列上的“padding:0”或 m-0 用于“margin:0”。

关于html - Bootstrap 4 : remove columns margin gutter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48620413/

上一篇:javascript - 如何在超过特定窗口宽度后从对象中删除类

下一篇:html - 如何将动态 div 中的图像 float 到 div 的右下角?

相关文章:

PHP echo 函数更改 html 输出的顺序?

javascript - 不允许加载本地资源 : <blob_url> while accessing url in content script

css - em 的高度是多少?

html - 如何修复div在html中没有正确收缩

angular - 在 IE11 和 Edge 中的 Bootstrap 模态上渲染 Artifact

android - 如何剥离 3-rd 方网站以便在移动设备上更好地显示?

jquery - div 背景和文本不同的行为

html - 在 css 中使用 fit-content 自动调整宽度

Angular 4 : How to access element inside ng-template

angular - 如何在 Angular 2 中为登录组件使用单独的布局?