跟我学jquerymobile框架技术及应用实例第7部分内容摘要:

label for=checkbox3aFritos/label input type=checkbox name=checkbox4a id=checkbox4a label for=checkbox4aSun Chips/label /fieldset /div 水平摆放 div datademohtml=true fieldset datarole=controlgroup datatype=horizontal datamini=true legendCheckboxes, mini, horizontal controlgroup:/legend input type=checkbox name=checkbox6 id=checkbox6 label for=checkbox6b/label input type=checkbox name=checkbox7 id=checkbox7 checked label for=checkbox7emi/em/label input type=checkbox name=checkbox8 id=checkbox8 label for=checkbox8u/label /fieldset 杨教授工作室 精心创作的优秀程序员 职业提升必读系列资料 杨教授工作室,版权所有,盗版必究 , 8/17 页 /div 表单中的元素 —— 单选按钮( Radio) 竖直摆放(默认显示方式) div datademohtml=true fieldset datarole=controlgroup legendRadio buttons, vertical controlgroup:/legend input type=radio name=radiochoice1 id=radiochoice1 value=choice1 checked=checked label for=radiochoice1Cat/label input type=radio name=radiochoice1 id=radiochoice2 value=choice2 label for=radiochoice2Dog/label input type=radio name=radiochoice1 id=radiochoice3 value=choice3 label for=radiochoice3Hamster/label input type=radio name=radiochoice1 id=radiochoice4 value=choice4 label for=radiochoice4Lizard/label /fieldset /div 如需创建一套单选按钮,请添加 type=radio 的 input 元素以及相应的 label。 在 fieldset 元素中包装单选按钮。 也可以增加一个 legend 元素来定义 fieldset 的标题。 杨教授工作室 精心创作的优秀程序员 职业提升必读系列资料 杨教授工作室,版权所有,盗版必究 , 9/17 页 在 fieldset标签中用 datarole=controlgroup 属性来组合这些按钮。 水平摆放 如需对单选框或复选框进行水平分组,请在 fieldset标签中用 datatype=horizontal 属性。 div datademohtml=true fieldset datarole=controlgroup datatype=horizontal datamini=true legendRadio buttons, mini, horizontal controlgroup:/legend input type=radio name=radiochoiceb id=radiochoicec value=list checked=checked label for=radiochoicecList/label input type=radio name=radiochoiceb id=radiochoiced value=grid label for=radiochoicedGrid/label input type=radio name=radiochoiceb id=radiochoicee value=gallery label for=radiochoiceeGallery/label /fieldset /div 如果您希望“预选”其中一个按钮 可以使用 HTML input 标签的 checked 属性,下面为实例: input type=radio checked input type=checkbox checked 表单中的元素 —— 下拉选择框( select) 单选 div datademohtml=true label for=selectchoice1 class=selectSelect, native menu/label select name=selectchoice1 id=selectchoice1 option value=standardStandard: 7 day/option option value=rushRush: 3 days/option 杨教授工作室 精心创作的优秀程序员 职业提升必读系列资料 杨教授工作室,版权所有,盗版必究 , 10/17 页 option value=expressExpress: next day/option option value=overnightOvernight/option /select。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。