[英]Bootstrap-4 display classes don't work
I'm working with Bootstrap 4 beta at the moment and everything works fine, but I have one problem... the display classes like d-none, d-inline, d-inline-block... don't have any effect.我目前正在使用 Bootstrap 4 beta,一切正常,但我有一个问题......像 d-none、d-inline、d-inline-block 这样的显示类......没有任何影响. Everything else works just fine and I don't understand why they don't work.
其他一切都很好,我不明白为什么它们不起作用。
for example:例如:
<div class="container">
<div class="row">
<div class="col-xs-12">
<h1 class="bg-success d-inline">Test</h1> <h1 class="bg-success d-inline">Test2</h1>
</div>
</div>
</div>
Those h1 elements are still displayed as block elements.那些 h1 元素仍然显示为块元素。 has anyone an idea where the problem could be?
有谁知道问题出在哪里?
Ok I think I found the problem.好的,我想我发现了问题。 The CSS file has only the display classes with breakpoints, like d-md-inline... but the overall display classes d-inline, d-block, and so on are missing.
CSS 文件只有带有断点的显示类,如 d-md-inline...但缺少整体显示类 d-inline、d-block 等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.