HTML5的data-属性说明

更新时间:2023-07-29 20:56:11 阅读: 评论:0

Data attribute reference
The jQuery Mobile framework us HTML5 data- attributes to allow for markup-bad initialization and configuration of widgets. The attributes are completely optional; calling plugins manually and passing options directly is also supported. To avoid naming conflicts with other plugins or frameworks that also u data- attributes, t a custom namespace by modifying the ns global option.
Button
Links with data-role="button". Input-bad buttons, links in toolbars and button elements are auto-enhanced, no data-role required.
data-corners
true | fal
data-icon
home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | arch
data-iconpos
left | right | top | bottom | notext
data-iconshadow
true | fal
data-inline
true | fal
data-mini
true | fal - Compact sized version
data-shadow手抄报
true | fal
data-theme
swatch letter (a-z)
Multiple buttons can be wrapped in a container with a data-role="controlgroup" attribute for a vertically grouped t. Add the data-type="horizontal" attribute for the buttons to sit side-by-side. Add the data-mini="true" to get the mini/compact sized version for all the buttons that appear in the controlgroup.
Checkbox
Pairs of labels and inputs with type="checkbox" are auto-enhanced, no data-role required水管破裂漏水怎么修复
data-mini
true | fal - Compact sized version
data-role
none - Prevents auto-enhancement to u native control
data-theme
榄仁叶的作用swatch letter (a-z) - Added to the form element
茂密反义词
Multiple checkboxes can be wrapped in a container with a data-role="controlgroup" attribute for a vertically grouped t. Add the data-type="horizontal" attribute for the checkboxes to sit side-by-side. Add the data-mini="true" to get the mini/compact sized v
ersion for all the checkboxes that appear in the controlgroup.
Collapsible
A heading and content wrapped in a container with the data-role="collapsible"
data-collapd
true | fal
data-collapd-icon
home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | arch
data-content-theme
swatch letter (a-z)
data-expanded-icon
home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | arch
data-iconpos
left | right | top | bottom
data-int什么是流年
true | fal
data-mini
true | fal - Compact sized version
data-theme
swatch letter (a-z)
Collapsible t
A number of collapsibles wrapped in a container with the data-role="collapsible-t"
data-collapd-icon
home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | arch
data-content-theme
swatch letter (a-z) - Sets all collapsibles in t
data-expanded-icon
home | delete | plus | arrow-u | arrow-d | check | gear | grid | star | custom | arrow-r | arrow-l | minus | refresh | forward | back | alert | info | arch
data-iconpos
left | right | top | bottom | notext
data-int
true | fal
data-mini
true | fal - Compact sized version
data-theme
古诗故事
swatch letter (a-z) - Sets all collapsibles in t
Content
Container with data-role="content"
data-theme
swatch letter (a-z)
Controlgroup
DIV or FIELDSET container with data-role="controlgroup". Visually integrate multiple button-styled inputs of a single type (checkboxes, link-bad buttons, radio buttons, lects) into a group. For grouping form checkboxes and radio buttons, the fieldt container is recommended inside a div container with the data-role="fieldcontain", to improve label styling.
data-mini
true | fal - Compact sized version for all items in the controlgroup
data-type
horizontal | vertical - For horizontal or vertical item alignment
Dialog
Container with data-role="dialog" or linked to with data-rel="dialog" on the anchor.
data-clo-btn-text
string - Text for the clo button, dialog only
data-dom-cache
true | fal
data-overlay-theme
swatch letter (a-z) - Overlay theme when the page is opened in a dialog
data-theme
swatch letter (a-z)
data-title
string - Title ud when page is shown
Enhancement
制定英文Container with data-enhance="fal" or data-ajax="fal"
data-enhance
true | fal
data-ajax
true | fal
Any DOM elements inside a data-enhance="fal" container, save for data-role="page|dialog" elements, will be ignored during initial enhancement and subquent create events provided that the $.mobile.ignoreContentEnabled flag is t prior to the enhancement (eg in a mobileinit binding).
Any link or form element inside data-ajax="fal" containers will be ignored by the framework's navigation functionality when $.mobile.ignoreContentEnabled is t to true.
Field container
Container with data-role="fieldcontain" wrapped around label/form element pair
Fixed Toolbar
Container with data-role="header" or data-role="footer" plus the attribute data-position="fixed"
data-disable-page-zoom
true | fal - Ur-scaling-ability for pages with fixed toolbars
data-fullscreen
true | fal - Setting toolbars over the page-content
data-tap-toggle
true | fal - Ability to toggle toolbar-visibility on ur tap/click
data-transition
slide | fade | none - Show/hide-transition when a tap/click occurs
data-update-page-padding
true | fal - Have the page top and bottom padding updated on resize, transition, "updatelayout" events (the framework always updates the padding on the "pageshow" event).
data-visible-on-page-show
true | fal - Toolbar-visibility when parent page is shown
Flip toggle switch

本文发布于:2023-07-29 20:56:11,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1122998.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:破裂   故事   漏水   水管   古诗   修复
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图