Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 jQuery 复选框和标签,默认对齐方式如下:
[x] label
我怎样才能改变它们,让标签在前面?使用萤火虫我没有找到任何对齐语句。
只需将标签文本放在之前,<input type = "checkbox"/>您的代码如下所示:
<input type = "checkbox"/>
<label for = "testCheckbox">Label</label> <input type = "checkbox" id = "testCheckbox" name = "testCheckBox"/>