如何在标签后添加复选框? [英] How to add check box after the label?

查看:88
本文介绍了如何在标签后添加复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望标签后有一个复选框请帮帮我



我尝试过的事情:



i want to have a check box after label please help me

What I have tried:



< label for =check2class =check2> Is Active< / label>


<label for="check2" class = "check2">Is Active</label>




< input class =check2type =checkboxname =checkvalue = check1>



<input class="check2" type="checkbox" name="check" value="check1">






.check2 {float:left}


.check2 { float : left}

推荐答案

如果你的意思是你想要这个:

If you mean you want this:
My label text [X]

而不是这个:

[X] My label text

然后看到这里: html - 如何在Bootstrap 3中的复选框左侧移动标签? - 堆栈溢出 [ ^ ]

Josh Crozier答案应该这样做。

Then see here: html - How can I move a label to the left of a checkbox in Bootstrap 3? - Stack Overflow[^]
The Josh Crozier answer should do it.


这篇关于如何在标签后添加复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆