Bootstrap 提供了一些帮助器类,以便更快地实现对移动设备友好的开发。这些可以通过媒体查询结合大型、小型和中型设备,实现内容对设备的显示和隐藏。

 

Class 设备
.visible-xs 额外的小设备(小于 768px)可见
.visible-sm 小型设备(768 px 起)可见
.visible-md 中型设备(768 px 到 991 px)可见
.visible-lg 大型设备(992 px 及以上)可见
.hidden-xs 额外的小设备(小于 768px)隐藏
.hidden-sm 小型设备(768 px 起)隐藏
.hidden-md 中型设备(768 px 到 991 px)隐藏
.hidden-lg 大型设备(992 px 及以上)隐藏

 Bootstrap 响应式布局

相关文章:

  • 2021-05-16
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-01-11
  • 2021-12-21
猜你喜欢
  • 2021-04-23
  • 2021-12-28
  • 2022-02-09
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案