所以我想知道首先使用data-role =“fieldcontain”有什么用?为什么要把它?我在文档上看到它,我只是把它放在我的html中,但是把它放在什么用途?
谢谢!
解决方法
> http://jquerymobile.com/demos/1.1.1/docs/api/data-attributes.html
Field container
Container with data-role=”fieldcontain” wrapped around label/form element pairControlgroup
DIV or FIELDSET container withdata-role="controlgroup"
. Visually integrate multiple button-styled
inputs of a single type (checkBoxes,link-based buttons,radio
buttons,selects) into a group. For grouping form checkBoxes and radio
buttons,the fieldset container is recommended inside a div container
with thedata-role="fieldcontain"
,to improve label styling.
data-mini
true | false – Compact sized version for all items in the
controlgroupdata-type
horizontal | vertical – For horizontal or vertical item alignment