bootstrap中label class="checkbox"有什么用
网上代码如下:<labelclass="checkbox"><inputtype="checkbox"value="">Optiononeisthisandthat—be...
网上代码如下:
<label class="checkbox">
<input type="checkbox" value="">
Option one is this and that—be sure to include why it's great
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that—be sure to include why it's great
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
但是我这样写照样能够先出现一个复选框后出现一个单选:
<label class="radio">
<input type="checkbox" value="">
Option one is this and that-be sure to include why it's great
</label>
<label class="checkbox">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that-be sure to include why it's great
</label>
这样只是单选和复选前面多了一个空格
那么 label class="checkbox"设置这个class有个什么用呢? 展开
<label class="checkbox">
<input type="checkbox" value="">
Option one is this and that—be sure to include why it's great
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that—be sure to include why it's great
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
但是我这样写照样能够先出现一个复选框后出现一个单选:
<label class="radio">
<input type="checkbox" value="">
Option one is this and that-be sure to include why it's great
</label>
<label class="checkbox">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that-be sure to include why it's great
</label>
这样只是单选和复选前面多了一个空格
那么 label class="checkbox"设置这个class有个什么用呢? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询