HTML5¼¼Êõ

html5³£Óûù±¾±êÇ© - ÓîÖæ¿ÓÒ»ºÅ(3)

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

¢ÙnameÊôÐÔ£ºÐ´ÔÚselectÀËùÓÐÑ¡ÏîÖ»ÓÐÒ»¸öname ¢ÚmultipleÊôÐÔ£ºmultiple="multiple"ÉèÖÃselectΪ¶àÑ¡£¬Ò»°ã²»Óà ¢Ûoption³£ÓÃÊôÐÔ£ºvalue=""ÊôÐÔ£¬µ±optionûÓÐvalueÊôÐÔʱ£¬Íùºǫ́´«µÝµÄÊÇoption/optionÖмäµÄ

¡¡¡¡¡¡¡¡¢ÙnameÊôÐÔ£ºÐ´ÔÚselectÀËùÓÐÑ¡ÏîÖ»ÓÐÒ»¸öname
¡¡¡¡¡¡¡¡¢ÚmultipleÊôÐÔ£ºmultiple="multiple"ÉèÖÃselectΪ¶àÑ¡£¬Ò»°ã²»ÓÃ
¡¡¡¡¡¡¡¡¢Ûoption³£ÓÃÊôÐÔ£ºvalue=""ÊôÐÔ£¬µ±optionûÓÐvalueÊôÐÔʱ£¬Íùºǫ́´«µÝµÄÊÇ<option></option>ÖмäµÄÎÄ×Ö£¬
¡¡¡¡¡¡¡¡¡¡¡¡µ±ÓÐvalueÊôÐÔʱ£¬´«µÝµÄÊÇvalueµÄÊôÐÔÖµ¡£
¡¡¡¡¡¡¡¡¡¡¡¡title=""ÊôÐÔ,Êó±êÖ®ÉϺóÏÖʵµÄÎÄ×Ö
¡¡¡¡¡¡¡¡¡¡¡¡select="select"ĬÈÏÊôÐÔÖµ
¡¡¡¡¡¡¡¡¢ÜoptgroupÊôÐÔ£º ÓÃÓÚoptionÊôÐÔ·Ö×飬ÓÃlableÊôÐÔ±íʾ·Ö×éÃû¡£
¡¡¡¡¡¡¡¡¡¡¡¡<optgroup label="Öйú">
¡¡¡¡¡¡¡¡¡¡¡¡<option>Çൺ</option>
¡¡¡¡¡¡¡¡¡¡¡¡<option>ÑĮ̀</option>
¡¡¡¡¡¡¡¡¡¡¡¡<option>±±¾©</option>
¡¡¡¡¡¡¡¡¡¡¡¡</optgroup>

¡¾textarea¡¿:Îı¾Óò£¬Æä³£ÓÃÊôÐÔ £º

¡¡¡¡¡¡¡¡¢ÙÉèÖÿí¶È¸ß¶Èreadonly"£ºÖ»¶Áģʽ£¬²»ÔÊÐíÐ޸ı༭
¡¡¡¡¡¡¡¡¢Ûstyle="resize: none;"ÉèÖÃΪ¿í¶È¸ß¶È²»ÔÊÐíÐÞ¸Ä
¡¡¡¡¡¡¡¡¢Üstyle="overflow:;"ÉèÖÃÎÄ×Ö³¬³öÇøÓòʱ£¬ÈçºÎ´¦Ö㬳£ÓÃÊôÐÔÖµÓУº
¡¡¡¡¡¡¡¡¡¡¡¡hidden ³¬³öÇøÓòµÄÎÄ×Ö£¬Òþ²ØÎÞ·¨ÏÔʾ
¡¡¡¡¡¡¡¡¡¡¡¡scroll ÎÞÂÛÎÄ×Ö¶àÉÙ£¬¾ùÏÔʾ¹ö¶¯
¡¡¡¡¡¡¡¡¡¡¡¡auto ×Ô¶¯£¬¸ù¾ÝÎÄ×Ö¶àÉÙ×Ô¶¯¾ö¶¨ÊÇ·ñ»áÏÔʾΪ¹ö¶¯Ìõ

¡¾fieldset ¡¢legend¡¿±íµ¥µÄ±ß¿òÓë±êÌâ
¡¡¡¡¡¡¡¡¡¡¡¡<fieldset> //±ß¿ò
¡¡¡¡¡¡¡¡¡¡¡¡<legend> //±êÌâ
¡¡¡¡¡¡¡¡¡¡¡¡</legend>
¡¡¡¡¡¡¡¡¡¡¡¡</fieldset>
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Èç¹ûÏëÈñêÌâǶÈëµ½±ß¿òÖУ¬Ð轫±êÌâ±êǩдµ½±ß¿ò±êÇ©ÀïÃæ
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Ò»¸ö±íµ¥¿ÉÒÔÓжà×é±êÌâ¼Ó±ß¿ò×éºÏ

¡¾h5ÖÇÄÜ±íµ¥¡¿
1¡¢H5ÐÂÔöinputµÄformÊôÐÔ£¬ÓÃÓÚÖ¸¶¨ÌØform±íµ¥µÄid£¬ÊµÏÖinputÎÞÐè·ÅÔÚform±êÇ©Ö®ÖУ¬¼´¿Éͨ¹ý±íµ¥½øÐÐÌá½»
<form id=foo>
¡­¡­
</form>
<input type="text" form="foo">
2¡¢ inputÔªËصÄÐÂÔöÊôÐÔ£º
Autocomplete£º×Ô¶¯Íê³É¹¦ÄÜ£¬¼Ç¼Óû§Ö®Ç°ÊäÈëµÄÄÚÈÝ£¬²¢ÔÚÓû§Ï´ÎÊäÈëʱÌáʾÓû§ÊäÈë
¡·¡·¡·ÊôÐÔÖµ£ºon/off
¡·¡·¡·¿ÉÒÔÔÙform±íµ¥Ê¹Ó㬶ÔÕû¸ö±íµ¥µÄËùÓпؼþ½øÐÐ×Ô¶¯Íê³ÉµÄ¿ª¹ØÒ²¿ÉÒÔÔÚinputÉÏʹÓã¬
¶ÔÌض¨ÊäÈë¿ò½øÐÐÐÞ¸Ä
¡·¡·¡·¾ø´ó²¿·Öä¯ÀÀÆ÷ĬÈÏ¿ªÆô
Autofocus£º×Ô¶¯»ñµÃ½¹µã£¬autofocus="autofocus"Ö»ÄÜ»ñµÃÒ»¸ö½¹µã
Form£ºËùÊô±íµ¥£¬Í¨¹ýidÈ·ÈÏÊôÓÚÄĸö±íµ¥
Required£º±ØÌî,required="required",ÉèÖñØÌ·ñÔòÍ£Ö¹Ìá½»
Pattern£ºÊ¹ÓÃÕýÔò±í´ïʽÑéÖ¤inputµÄģʽ
Placeholder£ºÌáʾ£¬µ±ÓÐvalueʱȡÏûÌáʾ¡£

¡¾Ê¾Àý-±í¸ñ¡¿

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Çë¼Ùµ¥</title> </head> <body > <!--<table> <caption><u><b>ÌرðÇë¼Ùµ¥</b></u></caption> <tr> <td>ÉêÇëÈÕÆÚ£º  Äê   Ô   ÈÕ</td> </tr> </table> <table> <tr> <td>ËùÊôµ¥Î»</td> <td>²·×æ°à</td> <td>Ö°³Æ</td> <td>111</td> <td>ÐÕÃû</td> <td>111</td> <td>³§³¤</td> </tr> <tr> <td rowspan="2">ÆÚ¼ä</td> <td colspan="3">ÄêÔÂÈÕ</td> <td colspan="2" rowspan="2">ÌìÊý</td> <td>111</td> </tr> <tr> <td colspan="3">ÄêÔÂÈÕ</td> <td>Ö÷¹Ü</td> </tr> <tr> <td colspan="2">Ö°Îñ´úÀíÈË</td> <td colspan="4">¸ÇÕÂ</td> <td>111</td> </tr> <tr> <td colspan="1">µ½Ö°ÈÕÆÚ</td> <td colspan="3">ÄêÔÂÈÕ</td> <td colspan="2">ÉóºËÒâ¼û</td> <td colspan="1">×鳤</td> </tr> <tr> <td colspan="2">È«ÄêÌرðÐݼÙÊé</td> <td colspan="2">Ìì</td> <td colspan="1">111</td> <td colspan="1">111</td> <td colspan="1">111</td> </tr> <tr> <td colspan="2">ÒßÇé¼ÒÊô</td> <td colspan="2"align="right">Ìì</td> <td >ÈËÊÂÖ÷ÈÎ</td> <td >ÈÏʶ¾­°ì</td> <td >°à³¤</td> </tr> <tr> <td colspan="2">±¾´ÎÉêÇëÈÕÆÚ</td> <td colspan="2"align="right">Ìì</td> <td rowspan="2">111</td> <td rowspan="2">111</td> <td rowspan="2">111</td> </tr> <tr> <td colspan="2">Ê£ÓàÇë¼ÙÈÕÆÚ</td> <td colspan="2"align="right">Ìì</td> </table>--> <h2width="500px" >Ìù±ðÐݼÙÉêÇëµ¥</h2> <p>                              ÉêÇëÈÕÆÚ£º  Äê   Ô   ÈÕ</p> <table> <tr> <td>ËùÊôµ¥Î»</td> <td>²·×æ°à</td> <td>Ö°³Æ</td> <td>111</td> <td>ÐÕÃû</td> <td>111</td> <td>³§³¤</td> </tr> <tr> <td rowspan="2">ÆÚ¼ä</td> <td colspan="3">ÄêÔÂÈÕ</td> <td colspan="2" rowspan="2">ÌìÊý</td> <td>111</td> </tr> <tr> <td colspan="3">ÄêÔÂÈÕ</td> <td>Ö÷¹Ü</td> </tr> <tr> <td colspan="2">Ö°Îñ´úÀíÈË</td> <td colspan="4">¸ÇÕÂ</td> <td>111</td> </tr> <tr> <td colspan="1">µ½Ö°ÈÕÆÚ</td> <td colspan="3">ÄêÔÂÈÕ</td> <td colspan="2">ÉóºËÒâ¼û</td> <td colspan="1">×鳤</td> </tr> <tr> <td colspan="2">È«ÄêÌرðÐݼÙÊé</td> <td colspan="2">Ìì</td> <td colspan="1">111</td> <td colspan="1">111</td> <td colspan="1">111</td> </tr> <tr> <td colspan="2">ÒßÇé¼ÒÊô</td> <td colspan="2"align="right">Ìì</td> <td >ÈËÊÂÖ÷ÈÎ</td> <td >ÈÏʶ¾­°ì</td> <td >°à³¤</td> </tr> <tr> <td colspan="2">±¾´ÎÉêÇëÈÕÆÚ</td> <td colspan="2"align="right">Ìì</td> <td rowspan="2">111</td> <td rowspan="2">111</td> <td rowspan="2">111</td> </tr> <tr> <td colspan="2">Ê£ÓàÇë¼ÙÈÕÆÚ</td> <td colspan="2"align="right">Ìì</td> </table> </body> </html>

¡¡¡¡

 

 

¡¾Ê¾Àý-±íµ¥¡¿

¡¡

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

Ïà¹ØÎÄÕÂ
  • HTML5 DragEvent - QxQstar

    HTML5 DragEvent - QxQstar

    2017-02-26 15:00

  • HTML5 ruby×¢ÊͱêÇ© - kumayato

    HTML5 ruby×¢ÊͱêÇ© - kumayato

    2017-02-23 15:02

  • HTML5¶¯»­£¨¶þ£©£ºCanvas ʵÏÖÔ²Ðνø¶ÈÌõ²¢ÏÔʾÊý×Ö°Ù·Ö±È - ÃÏÈ»

    HTML5¶¯»­£¨¶þ£©£ºCanvas ʵÏÖÔ²Ðνø¶ÈÌõ²¢ÏÔʾÊý×Ö°Ù·Ö±È - ÃÏÈ»

    2017-02-23 14:05

  • html4Óëhtml5µÄÇø±ð - Aqiaoba

    html4Óëhtml5µÄÇø±ð - Aqiaoba

    2017-02-23 13:00

ÍøÓѵãÆÀ
µ