Firefox中的Bootstrap CSS单选按钮坏了

时间:2013-03-17 15:21:53

标签: css firefox twitter-bootstrap radio-button

我正在使用bootstrap CSS,我有一个使用单选按钮的表单,它可以在Chrome中使用 当我使用Firefox时,标签和按钮会崩溃。

这是代码

<form class="form-horizontal" method="post" action="registerResult.php">

            <fieldset>
    <div class="control-group">
                    <label  class="control-label">Gender :</label>
                        <label class="radio">
                           <div class="controls"><input type="radio" name="sexe" id="optionsRadios1" value="male" checked></div>
                         Male
                        </label>
                        <label class="radio">
                            <div class="controls"><input type="radio" name="sexe" id="optionsRadios1" value="female" checked></div>
                          Female
                        </label>
                </div>
</fieldset>
</form>

以下是截图: Bootstrap CSS radio button broken in Firefox screen shot

1 个答案:

答案 0 :(得分:1)

检查一下:

<div class="control-group">
   <label class="control-label">Gender:</label>
   <div class="controls">
      <label class="radio">
         <input type="radio" name="Gender" value="Male"> Male
      </label>
      <label class="radio">
         <input type="radio" name="Gender" value="Female"> Female
      </label>
      <label class="radio">
         <input type="radio" name="Gender" value="Other"> Other
      </label>
   </div>
</div>