Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use weui in front-end HTML5

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use weui in the front-end HTML5, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Button

Button-OK-available button-OK-unavailable button-warning-available button-warning-unavailable button-cancel-available button-cancel-unavailable button-hollowed-out button-hollowed out-OK button-Mini-cancel

List item

List items with description

Description text

icon

List items with icons, descriptions, jumps

Description text

List items for description, jump

Description text

Radio list item

Radio list item 1

Radio list item 2

Check list item

Check list item 1

Check list item 2

Check list item 3

Check list item 4

Other forms

Qq verification code

Bank card verification code

Picture upload

Picture upload 0PUP 2 50%

Date and time

Date and time

Drop-down box

+ 86 + 80 + 84 + 87 + your uncle Wechat number QQ Email Country / region China, USA, UK

Custom pop-up window content-selection box

Pop-up window title Custom Pop-up content

... Unconfirm $("# Dialog1") .find ("[name='no']") .click (function () {$("# Dialog1") .hide (); / / activate the display delayed close method / / $('# Dialog1'). Show (). Delay (3000) .hide (0);}) $("# Dialog1") .find ("[name='yes']") .click (function () {$("# Dialog1") .hide ();})

Custom pop-up window content-OK box

Pop-up window title, pop-up window content, tell the current page information, etc., to determine $("# Dialog2"). Find ("[name='yes']") .click (function () {$("# Dialog2") .hide ();})

Progress bar

Upload $("# btnStartProgress") .click (function () {$('# prs'). Animate ({width: "100%"}, 5000, function () {$(this) .css ("width", "10%");})

Reminder box

Operation exception

(automatically shut down after 2 seconds)

SetTimeout (function () {$("# toast") .hide ();}, 2000)

Loading frame

Data loading

SetTimeout (function () {$("# loadingToast") .hide ();}, 3000)

Results page

Details of the contents of the successful operation can be arranged according to the actual needs

Confirm to cancel

View details

Article page

Headline chapter title section 1.1 title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute

1.2 Section title

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Icon

Sample menu

Click pull-up ActionSheet sample menu 1 sample menu 2 sample menu 3 sample menu 4 cancel $("# showActionSheet") .click (function () {var mask = $("# mask"); var weuiActionsheet = $("# weui_actionsheet") Mask.show (). AddClass ('weui_fade_toggle') .click (function () {hideActionSheet (weuiActionsheet, mask);}); $("# actionsheet_cancel") .click (function () {hideActionSheet (weuiActionsheet, mask);}); $("# actionsheet1"). Add ($("# actionsheet2"). Add ($("# actionsheet3")). Add ($("# actionsheet4")). Unbind ("click") ("# actionsheet1") .click (function () {alert ("clicked sample menu 1"); hideActionSheet (weuiActionsheet, mask);}); $("# actionsheet2") .click (function () {alert ("clicked sample menu 2"); hideActionSheet (weuiActionsheet, mask);}) ("# actionsheet3") .click (function () {alert ("clicked sample menu 3"); hideActionSheet (weuiActionsheet, mask);}); $("# actionsheet4") .click (function () {alert ("clicked sample menu 4"); hideActionSheet (weuiActionsheet, mask);}); weuiActionsheet.addClass ('weui_actionsheet_toggle') WeuiActionsheet.unbind ('transitionend'). Unbind (' webkitTransitionEnd'); var hideActionSheet = function (weuiActionsheet, mask) {weuiActionsheet.removeClass ("weui_actionsheet_toggle"); mask.removeClass ("weui_fade_toggle"); weuiActionsheet.on ('transitionend', function () {mask.hide ();}). On (' webkitTransitionEnd', function () {mask.hide () Thank you for reading this article carefully. I hope the article "how to use weui in the front-end HTML5" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report