小编Akk*_*kie的帖子

Bootstrap 5 文本位于开关复选框之前(无需额外的插件/插件)

我使用 Bootstrap 5,并且希望使用开关。

我不想使用任何其他插件,而只想使用引导程序。

如何在切换开关之前放置文本。

这不起作用:

<div class="form-check form-switch">
  off
  <input type="checkbox" class="form-check-input" id="site_state">
  <label for="site_state" class="form-check-label">on</label>
</div>
Run Code Online (Sandbox Code Playgroud)

有人有主意吗?

checkbox switch-statement bootstrap-5

4
推荐指数
1
解决办法
7274
查看次数

标签 统计

bootstrap-5 ×1

checkbox ×1

switch-statement ×1