为了账号安全,请及时绑定邮箱和手机立即绑定

怎么让喜欢和不喜欢放在同一行 我调不对

怎么让喜欢和不喜欢放在同一行 我调不对

正在回答

7 回答


<form role="form">
<h3>案例1</h3>
<div class="form-group">
<label class="checkbox">
<input type="checkbox" value="">
记住密码
</label>
<label class="radio-inline">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="love" checked>
喜欢
</label>
<label class="radio-inline">
<input type="radio" name="optionsRadios" id="optionsRadios2" value="hate">
不喜欢
</label>
</div>


0 回复 有任何疑惑可以回复我~

<form role="form">

<h3>案例1</h3>

<div class="checkbox">

<label>

<input type="checkbox" value="">

记住密码

</label>

</div>

</form>

<form role="form" class="form-inline">

<div class="radio">

<label>

<input type="radio" name="optionsRadios" id="optionsRadios1" value="love" checked>

喜欢

</label>

</div>

<div class="radio">

<label>

<input type="radio" name="optionsRadios" id="optionsRadios2" value="hate">

不喜欢

</label>

</div>

</form>


0 回复 有任何疑惑可以回复我~
<form role="form"><h3>案例1</h3><div class="checkbox"><label><input type="checkbox" value="">记住密码</label></div></form><form role="form" class="form-inline"><div class="radio"><label><input type="radio" name="optionsRadios" id="optionsRadios1" value="love" checked>喜欢</label></div><div class="radio"><label><input type="radio" name="optionsRadios" id="optionsRadios2" value="hate">不喜欢</label></div></form>


0 回复 有任何疑惑可以回复我~

<div class="radio">
    <label>
         <input type="radio" name="optionsRadios" id="optionsRadios1" value="love" checked>
          喜欢
        </label>
    <label>
          <input type="radio" name="optionsRadios" id="optionsRadios2" value="hate">
          不喜欢
       </label>
   </div>

放到一个类中 

0 回复 有任何疑惑可以回复我~
     <input type="checkbox"checked>    //checked表示默认选中状态
      喜欢
     <input type="checkbox"checked>
      不喜欢

删掉包含它们的div和lable只留input,就在一行了

0 回复 有任何疑惑可以回复我~
#1

坚持活下去啊

你这是复选框吧
2017-08-10 回复 有任何疑惑可以回复我~

可以说具体点吗

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

怎么让喜欢和不喜欢放在同一行 我调不对

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信