<input id="CheckBox1" type="checkBox" value="Admin"><span>Admin User</span>
这是最常用的标记.但对复选框使用单独的跨度并不好听.而且在形式上看起来并不好看.有没有办法把这两个相互联系起来?或者最好的方法是什么?
The for attribute specifies which form element a label is bound to
<input id="CheckBox1" name="CheckBox1" type="checkBox" value="Admin" /> <label for="CheckBox1">AdminUser</label>
也给你的输入一个名字