Bootstrap 4-隐藏的类-仅隐藏在小屏幕上 [英] Bootstrap 4 - hidden classes - only hide on small screens
本文介绍了Bootstrap 4-隐藏的类-仅隐藏在小屏幕上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何仅在小(sm)屏幕上隐藏span
内容?我需要在xs
屏幕上可见的内容.
How to hide span
content only on small (sm) screens? I need this content visible on xs
screens.
<span class="hidden-sm-down">Text</span>
有没有一种方法可以仅使用引导程序类?
There is a way to do this using only bootstrap classes or not?
推荐答案
使用Bootstrap 4 Beta 1,您只能使用d-block d-sm-none d-md-block
隐藏sm
.
With Bootstrap 4 Beta 1, you can hide sm
only with d-block d-sm-none d-md-block
.
https://code.luasoftware .com/tutorials/bootstrap/bootstrap-hide-element-based-on-viewport-size/
这篇关于Bootstrap 4-隐藏的类-仅隐藏在小屏幕上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文