找回密码
 免费注册

[Bootstrap] Bootstrap5的排序自定义

[复制链接]
admin 发表于 2023-8-23 17:11:06 | 显示全部楼层 |阅读模式
Bootstrap仅提供选项将一个物件排在第一个或最后一个,由于order只能使用从0到5的整数值,任何额外值则需要自定义的CSS。
  1. .order-first{order:-1!important}
  2. .order-0{order:0!important}
  3. .order-1{order:1!important}
  4. .order-2{order:2!important}
  5. .order-3{order:3!important}
  6. .order-4{order:4!important}
  7. .order-5{order:5!important}
  8. .order-last{order:6!important}
复制代码

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|Archiver|手机版|小黑屋|信息共享网

GMT+8, 2024-5-15 00:10 , Processed in 0.112051 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表