bootstrap4 -- 显示/隐藏html


艺术的本质就是在给予快乐中获得快乐。


bs3 与 bs4 对比表

BS 3 BS 4
hidden-xs-down d-none d-sm-block
hidden-sm-down d-none d-md-block
hidden-md-down d-none d-lg-block
hidden-lg-down d-none d-xl-block
hidden-xl-down d-none
hidden-xs-up d-none
hidden-sm-up d-sm-none
hidden-md-up d-md-none
hidden-lg-up d-lg-none
hidden-xl-up d-xl-none
hidden-xs d-none d-sm-block
hidden-sm d-block d-sm-none d-md-block
hidden-md d-block d-md-none d-lg-block
hidden-lg d-block d-lg-none d-xl-block
hidden-xl d-block d-xl-none
visible-xs d-block d-sm-none
visible-sm d-none d-sm-block d-md-none
visible-md d-none d-md-block d-lg-none
visible-lg d-none d-lg-block d-xl-none
visible-xl d-none d-xl-block