可以在控件

时间:2017-07-28 11:36:19

标签: javascript jquery html css jquery-mobile

我试图使用jquery mobile构建界面,但可以在控件下看到选项按钮。我该如何消失?



<fieldset data-role="controlgroup" data-type="horizontal" id="time-period-type">
    <input type="radio" name="time-period" id="weekly-time-period" value="weekly" checked="checked">
    <label for="weekly-time-period">WEEKS</label>
    <input type="radio" name="time-period" id="monthly-time-period" value="monthly">
    <label for="monthly-time-period">MONTHS</label>
    <input type="radio" name="time-period" id="yearly-time-period" value="yearly">
    <label for="yearly-time-period">YEARS</label>
</fieldset>
&#13;
&#13;
&#13;

enter image description here

1 个答案:

答案 0 :(得分:0)

&#13;
&#13;
#time-period-type > input{
  display      :  none;
  //opacity    :  0;
}
&#13;
<fieldset data-role="controlgroup" data-type="horizontal" id="time-period-type">
    <input type="radio" name="time-period" id="weekly-time-period" value="weekly" checked="checked">
    <label for="weekly-time-period">WEEKS</label>
    <input type="radio" name="time-period" id="monthly-time-period" value="monthly">
    <label for="monthly-time-period">MONTHS</label>
    <input type="radio" name="time-period" id="yearly-time-period" value="yearly">
    <label for="yearly-time-period">YEARS</label>
</fieldset>
&#13;
&#13;
&#13;

display : none设置为您的输入元素,或者添加opacity :0