HTML5¼¼Êõ

¡¾MUI¿ò¼Ü¡¿Ñ§Ï°±Ê¼ÇÕûÀí Day 1 - ¸ÒÑÔ

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-02-23 14:00 ÎÒÒªÆÀÂÛ( )

MUI ¿ò¼ÜÖ® ¡¾Ô­ÉúUI¡¿£¨1£©accordion£¨ÕÛµþÃæ°å£© Óɶþ¼¶ÁбíÑÝ»¯¶øÀ´ ²»À­²»À­ ´úÂë¿é¼¤»î×Ö·û£ºmaccordion £¨2£©actionsheet£¨²Ù×÷±í) ´Óµ×²¿µ¯³ö£¬ÏÔʾѡÔñÏîµÄ²Ù×÷°´Å¥ ²Ëµ¥1 ²Ëµ¥2 È¡Ïû ¡¾¾­µä°¸Àý¡¿£º ÄÐ Å® ±£ ÃÜ È¡ Ïû ÈôҪʹÓÃjs´úÂ붯̬ÏÔʾ¡¢Òþ²Ø

MUI ¿ò¼ÜÖ® ¡¾Ô­ÉúUI¡¿ £¨1£©accordion£¨ÕÛµþÃæ°å£©

Óɶþ¼¶ÁбíÑÝ»¯¶øÀ´

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡²»À­²»À­¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

´úÂë¿é¼¤»î×Ö·û£ºmaccordion

£¨2£©actionsheet£¨²Ù×÷±í)

´Óµ×²¿µ¯³ö£¬ÏÔʾѡÔñÏîµÄ²Ù×÷°´Å¥


¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡²Ëµ¥1¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡²Ëµ¥2¡¡¡¡
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡È¡Ïû¡¡¡¡¡¡¡¡¡¡¡¡

¡¾¾­µä°¸Àý¡¿£º

¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÄС¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Å®¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡±£ ÃÜ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ ¡¡¡¡¡¡¡¡¡¡¡¡È¡ Ïû¡¡¡¡¡¡¡¡¡¡¡¡

ÈôҪʹÓÃjs´úÂ붯̬ÏÔʾ¡¢Òþ²Øactionsheet£¬Í¬ÑùÔÚpopover²å¼þµÄ¹¹Ôì·½·¨Öд«Èë"toggle"²ÎÊý¼´¿É£¬ÈçÏ£º mui('#sheet1').popover('toggle');

´úÂë¿é¼¤»î×Ö·û£ºmactionsheet

£¨3£©badge£¨Êý×ֽDZ꣩

ÓÃÓÚÊýÁ¿Ìáʾ¡£±ÈÈçÏûÏ¢ÌõÊý¡£

½Ç±êµÄºËÐÄÀàÊÇ.mui-badge£¬Ä¬ÈÏΪʵÐÄ»ÒÉ«±³¾°£»Í¬Ê±£¬mui»¹ÄÚÖÃÁËÀ¶É«£¨blue£©¡¢ÂÌÉ«(green)¡¢»ÆÉ«(yellow)¡¢ºìÉ«(red)¡¢×ÏÉ«(purple)ÎåÖÖɫϵµÄÊý×ֽDZ꣬ÈçÏ£º

112123345456

ÈôÎÞÐèµ×É«£¬ÔòÔö¼Ó.mui-badge-invertedÀ༴¿É£¬ÈçÏ£º

123456

´úÂë¿é¼¤»î×Ö·û£ºmbadge

£¨4£©button£¨°´Å¥£©

ĬÈÏÀ¶É«ÂÌÉ«»ÆÉ«ºìÉ«×ÏÉ«

ÈôÏ£ÍûÎÞµ×É«¡¢Óб߿òµÄ°´Å¥£¬½öÐèÔö¼Ó.mui-btn-outlinedÀ༴¿É£¬´úÂëÈçÏ£º

ĬÈÏÀ¶É«ÂÌÉ«»ÆÉ«ºìÉ«×ÏÉ«

´úÂë¿é¼¤»î×Ö·û£ºmbutton

£¨5£©cardview£¨¿¨Æ¬ÊÓͼ£©

¿¨Æ¬ÊÓͼ³£ÓÃÓÚÕ¹ÏÖÒ»¶ÎÍêÕû¶ÀÁ¢µÄÐÅÏ¢¡£

ʹÓÃmui-cardÀ༴¿ÉÉú³ÉÒ»¸ö¿¨Æ¬ÈÝÆ÷£¬¿¨Æ¬ÊÓͼÖ÷ÒªÓÐҳü¡¢ÄÚÈÝÇø¡¢Ò³½ÅÈý²¿·Ö×é³É£¬½á¹¹ÈçÏ£º

ҳüÄÚÈÝÇøÒ³½Å

¿¨Æ¬Ò³Ã¼¼°ÄÚÈÝÇø£¬¾ùÖ§³Ö·ÅÖÃͼƬ£» ҳü·ÅÖÃͼƬµÄ»°£¬ÐèÒªÔÚ.mui-card-header½ÚµãÉÏÔö¼Ó.mui-card-mediaÀ࣬ȻºóÉèÖÃÒ»ÕÅͼƬ×ö±³¾°Í¼¼´¿É£¬´úÂëÈçÏ£º

ÈôÏ£ÍûÔÚҳü·ÅÖøü·á¸»µÄÐÅÏ¢£¬±ÈÈçÍ·Ïñ¡¢Ö÷±êÌâ¡¢¸±±êÌ⣬ÔòÐèʹÓÃ.mui-media-bodyÀ࣬ʾÀý´úÂëÈçÏ£º

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ð¡M ·¢±íÓÚ 2016-06-30 15:30¡¡¡¡

£¨6£©checkbox£¨¸´Ñ¡¿ò£©

checkbox³£ÓÃÓÚ¶àÑ¡µÄÇé¿ö£¬±ÈÈçÅúÁ¿É¾³ý¡£

¡¡¡¡checkboxʾÀý¡¡¡¡

ĬÈÏcheckboxÔÚÓÒ²àÏÔʾ£¬ÈôÏ£ÍûÔÚ×ó²àÏÔʾ£¬Ö»ÐèÔö¼Ó.mui-leftÀ༴¿É£¬ÈçÏ£º

¡¡¡¡checkbox×ó²àÏÔʾʾÀý¡¡¡¡

´úÂë¿é¼¤»î×Ö·û£ºmckeckbox

£¨7£©dialog£¨¶Ô»°¿ò£©

 

 


´úÂë¿é¼¤»î×Ö·û£ºmdalert mdconfirm mdprompt mdtoast mdclosepopup mdclosepopups

£¨8£©Í¼Æ¬ÂÖ²¥

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

¼ÙÉ赱ǰͼƬÂÖ²¥ÖÐÓÐ1¡¢2¡¢3¡¢4ËÄÕÅͼƬ£¬´ÓµÚ1ÕÅͼƬÆð£¬ÒÀ´ÎÏò×󻬶¯Çл»Í¼Æ¬£¬µ±Çл»µ½µÚ4ÕÅͼƬʱ£¬¼ÌÐøÏò×󻬶¯£¬½ÓÏÂÀ´»áÓÐÁ½ÖÖЧ¹û£º

  • Ö§³ÖÑ­»·£º×󻬣¬Ö±½ÓÇл»µ½µÚ1ÕÅͼƬ£»
  • ²»Ö§³ÖÑ­»·£º×󻬣¬ÎÞ·´Ó¦£¬¼ÌÐøÏÔʾµÚ4ÕÅͼƬ£¬Óû§ÈôÒªÏÔʾµÚ1ÕÅͼƬ£¬±ØÐëÁ¬ÐøÏòÓÒ»¬¶¯Çл»µ½µÚ1ÕÅͼƬ£»
  • µ±ÏÔʾµÚ1ÕÅͼƬʱ£¬¼ÌÐøÓÒ»¬ÊÇ·ñÏÔʾµÚ4ÕÅͼƬ£¬ÊÇͬÑùÎÊÌ⣻Õâ¸öÎÊÌâµÄʵÏÖÐèҪͨ¹ý.mui-slider-loopÀ༰DOM½ÚµãÀ´¿ØÖÆ£»

    ÈôÒªÖ§³ÖÑ­»·£¬ÔòÐèÒªÔÚ.mui-slider-group½ÚµãÉÏÔö¼Ó.mui-slider-loopÀ࣬ͬʱÐèÒªÖظ´Ôö¼Ó2ÕÅͼƬ£¬Í¼Æ¬Ë³Ðò±äΪ£º4¡¢1¡¢2¡¢3¡¢4¡¢1£¬´úÂëʾÀýÈçÏ£º

    ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡

    JS Method

    mui¿ò¼ÜÄÚÖÃÁËͼƬÂÖ²¥²å¼þ£¬Í¨¹ý¸Ã²å¼þ·â×°µÄJS API£¬Óû§¿ÉÒÔÉ趨ÊÇ·ñ×Ô¶¯ÂÖ²¥¼°ÂÖ²¥ÖÜÆÚ£¬ÈçÏÂΪ´úÂëʾÀý£º

    gallery = mui('.mui-slider'); 3 gallery.slider({ });

    Òò´ËÈôÏ£ÍûͼƬÂÖ²¥²»Òª×Ô¶¯²¥·Å£¬¶øÊÇÓû§ÊÖ¶¯»¬¶¯²ÅÇл»£¬Ö»ÐèҪͨ¹ýÈçÉÏ·½·¨£¬½«interval²ÎÊýÉèΪ0¼´¿É¡£

    ´úÂë¿é¼¤»î×Ö·û£ºmslider

    £¨9£©grid£¨Õ¤¸ñ£©

    MUI ÌṩÁ˷dz£¼òµ¥ÊµÓõÄ12ÁÐÏìӦʽդ¸ñϵͳ¡£Ê¹ÓÃʱֻÐèÔÚÍâΧÈÝÆ÷ÉÏÌí¼Ó.mui-row£¬ÔÚÁÐÉÏÌí¼Ó .mui-col-[sm|xs]-[1-12]£¬¼´¿É

    ´úÂë¿é¼¤»î×Ö·û£ºmrow mcolsm mcolxs

    £¨10£©icon£¨Í¼±ê£©

    muiĬÈÏÌṩÁËÊÖ»úApp¿ª·¢³£ÓõÄ×ÖÌåͼ±ê£¬ÈçÏ£º

     

    ʹÓÃʱ£¬Ö»ÐèÒªÔÚspan½ÚµãÉÏ·Ö±ðÔö¼Ó.mui-icon¡¢.mui-icon-nameÁ½¸öÀ༴¿É£¨nameΪͼ±êÃû³Æ£¬ÀýÈ磺weixin¡¢weiboµÈ£©£¬ÈçÏ´úÂë¼´¿ÉÏÔʾһ¸ö΢ÐÅͼ±ê£º

    ´úÂë¿é¼¤»î×Ö·û£ºmicon

    £¨11£©input£¨±íµ¥£©

    ËùÓаü¹üÔÚ.mui-input-row ÀàÖÐµÄ input¡¢textareaµÈÔªËض¼±»Ä¬ÈÏÉèÖÿí¶ÈÊôÐÔΪwidth: 100%; ½« labelÔªËغÍÉÏÊö¿Ø¼þ°ü¹üÔÚ.mui-input-groupÖпÉÒÔ»ñµÃ×îºÃµÄÅÅÁС£

    ¡¡¡¡¡¡¡¡¡¡¡¡Óû§Ãû¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÃÜÂë¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡È·ÈÏ¡¡¡¡¡¡¡¡È¡Ïû¡¡¡¡

    ÃÜÂë¿òÏÔʾÒþ²ØÃÜÂ룺

    ¸øinputÔªËØÌí¼Ó.mui-input-passwordÀ༴¿ÉʹÓá£

    ¡¡¡¡¡¡¡¡ÃÜÂë¿ò¡¡¡¡

    ʾÀý£º

    ÑéÖ¤±íµ¥ÊÇ·ñΪ¿Õ

    ¡¡¡¡¡¡¡¡¡¡¡¡Óû§Ãû£º¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÃÜÂ룺¡¡¡¡

    ÌύʱУÑéÈý¸ö×ֶξù²»ÄÜΪ¿Õ£¬ÈôΪ¿ÕÔòÌáÐѲ¢ÖÕÖ¹ÒµÎñÂß¼­ÔËÐУ¬Ê¹ÓÃeach()·½·¨Ñ­»·Ð£Ñ飬ÈçÏ£º

    ¡¡

    1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

    Ïà¹ØÎÄÕÂ
    • vueϵÁÐÖ®MVVM¿ò¼Ü - zhaobao1830

      vueϵÁÐÖ®MVVM¿ò¼Ü - zhaobao1830

      2017-02-16 13:00

    • VuejsµÄ±Ê¼Ç - zhaobao1830

      VuejsµÄ±Ê¼Ç - zhaobao1830

      2017-02-13 18:00

    • ¡¾ÕæÕý¸£Àû¡¿³ÉΪרҵ³ÌÐòԱ·ÉÏÓõ½µÄ¸÷ÖÖÓÅÐã×ÊÁÏ¡¢ÉñÆ÷¼°¿ò¼Ü - StanZhai

      ¡¾ÕæÕý¸£Àû¡¿³ÉΪרҵ³ÌÐòԱ·ÉÏÓõ½µÄ¸÷ÖÖÓÅÐã×ÊÁÏ¡¢ÉñÆ÷¼°¿ò¼Ü - S

      2017-02-10 10:00

    • ¡¾¸£Àû´ó·ÅËÍ¡¿²»Ö¹ÊÇAndroid£¬Github³¬¸ßÓ°ÏìÁ¦¿ªÔ´´ó·ÅËÍ£¬Ñ§Ï°¿ª·¢±Ø±¸½Ì¿ÆÊé - Äϳ¾

      ¡¾¸£Àû´ó·ÅËÍ¡¿²»Ö¹ÊÇAndroid£¬Github³¬¸ßÓ°ÏìÁ¦¿ªÔ´´ó·ÅËÍ£¬Ñ§Ï°¿ª

      2017-02-09 12:04

    ÍøÓѵãÆÀ
    õ