英文:
combining bootstrap breakpoints in class name
问题
你真的需要将我的Bootstrap类声明为所有屏幕尺寸和列宽的组合以实现响应性吗?
我正在使用<div class="col-md-4 col-sm-6 col-xs-12 col-lg-4 >
英文:
Do i really have to declare my bootstrap classes as a combination of all screen sizes and column span for responsiveness?
I am using <div class="col-md-4 col-sm-6 col-xs-12 col-lg-4 >
答案1
得分: 0
不需要声明所有的引导类。
较小的断点将应用于所有较大的断点,除非你明确添加一个更大的断点。
只需这样:
<div class="col-xs-12 col-sm-6 col-md-4"></div>
英文:
No.
You don't have to declare all the bootstrap classes.
The smaller breakpoint will be applied to all the larger ones unless you add a bigger breakpoint specifically.
Only this will suffice:
<div class="col-xs-12 col-sm-6 col-md-4"></div>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论