HTML5¼¼Êõ

[Bootstrap]È«¾ÖÑùʽ£¨Èý£© - Ê¢ÏÄ¡¢¹âÄê

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£º²©¿ÍÔ° 2016-04-22 18:00 ÎÒÒªÆÀÂÛ( )

±í¸ñ 1¡¢»ù±¾Àà .table {width/margin-bottom/} {padding/border-top} e.g.:table trth±íÍ·/th/tr trtdÄÚÈÝ/td/tr /table 2¡¢ÌõÎƱí¸ñ .table-striped {nth-of-type(odd):background-color} e.g.:table trth±íÍ·/th/tr trtdÄÚÈÝ/td/tr /table 3¡¢±ß¿ò±í¸ñ .t

±í¸ñ

1¡¢»ù±¾Àà  .table  {width/margin-bottom/}  {padding/border-top}

e.g.:<table> <tr><th>±íÍ·</th></tr> <tr><td>ÄÚÈÝ</td></tr> </table>

 

2¡¢ÌõÎƱí¸ñ  .table-striped  {nth-of-type(odd):background-color}

e.g.:<table> <tr><th>±íÍ·</th></tr> <tr><td>ÄÚÈÝ</td></tr> </table>

 

3¡¢±ß¿ò±í¸ñ  .table-border  {border}

e.g.:<table> <tr><th>±íÍ·</th></tr> <tr><td>ÄÚÈÝ</td></tr> </table>

 

4¡¢Êó±êÐüÍ£  .table-hover  {background-color}

e.g.:<table> <tr><th>±íÍ·</th></tr> <tr><td>ÄÚÈÝ</td></tr> </table>

 

5¡¢½ôËõµÄ±í¸ñ  .table-condesed

e.g.:<table> <tr><th>±íÍ·</th></tr> <tr><td>ÄÚÈÝ</td></tr> </table>

 

6¡¢×´Ì¬Àà  .active  .success  .warning  .danger  .info

e.g.:

ÐÐ״̬<table> <tr><th>±íÍ·</th></tr> <tr tr><td>ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr tr><td>ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr tr><td>ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr tr><td>ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr tr><td>ÄÚÈÝ</td></tr> </table>

ÁÐÊý¾Ý״̬<table> <tr><th>±íÍ·</th></tr> <tr><td>ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr><td class="success">ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr><td class="warning">ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr><td class="danger">ÄÚÈÝ</td></tr> </table>||<table> <tr><th>±íÍ·</th></tr> <tr><td class="info">ÄÚÈÝ</td></tr> </table>

 

7¡¢ÏìӦʽ±í¸ñ  .table-responsive

e.g.:<div><table>±í¸ñÊý¾Ý</table></div>

 

±íµ¥

1¡¢Ê¹ÓÃlabelºÍ¿Ø¼þ×éºÏʹÓ㬰ü¹üÔÚ.from-groupÀïÃæ»ñµÃ×îºÃµÄÅÅÁР {margin-bottom}

e.g.:<div><label for="exampleInput">ÃèÊöÄÚÈÝ</label><input type="text" /></div>

 

2¡¢<input>¡¢<select>¡¢<textarea>¼ÓÀà.form-control  {width/padding/border-radius/border}

e.g.:<div><label for="exampleInput">ÃèÊöÄÚÈÝ</label><input type="text" /></div>

 

3¡¢ÄÚÁª±íµ¥  .form-inline

e.g.:<form><div><label><label><input /></div></form> .form-groupÀà±íÏÖΪinline-block

 

4¡¢Ë®Æ½ÅÅÁР .form-horizontal+Õ¤¸ñÀà+.control-label

e.g.:<form><div><label></label><div><input /></div></div></form>

 

5¡¢ÊäÈë¿ò  input:text  ¼¸ºõä¯ÀÀÆ÷×Ô´øÑùʽ

e.g.:<input type="text" />

 

6¡¢Îı¾Óò  input:textarea  ¼¸ºõä¯ÀÀÆ÷×Ô´øÑùʽ

e.g.:<input type="textarea" />

 

7¡¢µ¥Ñ¡ºÍ¶àÑ¡ div+.radio/.checkkbox+ÊôÐÔdisabled/.disabled

e.g.:

<div><label><input type="radio" />ÃèÊöÄÚÈÝ</label></div>

<div><label><input type="checkbox" />ÃèÊöÄÚÈÝ</label></div>

<div><label><input type="radio" disabled />ÃèÊöÄÚÈÝ</label></div> ½ûÖ¹µã»÷

<div><label><input type="checkbox" disabled />ÃèÊöÄÚÈÝ</label></div> ½ûÖ¹µã»÷

 

8¡¢ÄÚÁªµ¥Ñ¡ºÍ¶àÑ¡  .radio-inline£¯.checkbox-inline

e.g.:

<label><input type="radio" />1</label>

<label><input type="checkbox" />1</label>

 

9¡¢ÏÂÀ­ÁÐ±í  ¼¸ºõä¯ÀÀÆ÷×Ô´øÑùʽ

e.g.:<selection><option>Ñ¡Ïî</option></selection> ¸ù¾ÝÐèÒªÌí¼ÓÀà.form-control

 

10¡¢¾²Ì¬¿Ø¼þ  .form-control-static+p

e.g.:<div><label>labelÄÚÈÝ</label><div><p></p></div></div>

 

11¡¢½ûÓÃ״̬  disableÊôÐÔ  {cursor/background-color}

e.g.:<input type="..." disabled />

 

12¡¢<filedset>   disableÊôÐÔ  ½ûÓðüº¬µÄËùÓпؼþ

e.g:<form><filedset disabled><div><label></label><input type="..."></div></fieldset></form>

 

13¡¢Ö»¶Á״̬  readonlyÊôÐÔ  {background-color}
e.g.:<input type="..." readonly>

 

14¡¢Ð£Ñé״̬  .has-success/.has-warning/.has-error + .control-label/.form-control

e.g.:

<div><label></label><input type="text" /></div>

<div><div><label><input type="radio" /></label></div></div>

 

15¡¢Ð£Ñé״̬£«Í¼±ê  .has-feedback+feedback icon

e.g.:<div><label></label><input type="text" /><span></span></div>

 

16¡¢ ˮƽÅÅÁУ¯ÄÚÁª£«Ð£Ñ飫ͼ±ê  .form-horizontal/.form-inline+УÑéÀà+.has-feedback+feedback icon

e.g.:

<form><div><label></label><input type="text" /><span></span></div></form>

<form><div><label></label><input type="text" /><span></span></div></form>

 

17¡¢¿Ø¼þ³ß´ç  .input-lg/.input-sm  {height/padding/border-radius/font-size}

e.g.:<input type="" />||<input type="" />

 

18¡¢Ë®Æ½ÅÅÁпؼþ³ß´ç  .form-group-lg/.form-group-sm

e.g.:

<form><div><label></label><div><input /></div></div></form>

<form><div><label></label><div><input/></div></div></form>

 

19¡¢ÁÐ³ß´ç  Õ¤¸ñÀà.row+.col-**-*¿ØÖƳߴç

¡¡

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

Ïà¹ØÎÄÕÂ
  • ¶ÔÓÚBootstrapµÄ½éÉÜÒÔ¼°ÈçºÎʹÓà - novai-L

    ¶ÔÓÚBootstrapµÄ½éÉÜÒÔ¼°ÈçºÎʹÓà - novai-L

    2017-04-29 09:00

  • JS×é¼þϵÁСª¡ª×Ô¼º¶¯ÊÖ·â×°bootstrap-treegrid×é¼þ - ÀÁµÃ°²·Ö

    JS×é¼þϵÁСª¡ª×Ô¼º¶¯ÊÖ·â×°bootstrap-treegrid×é¼þ - ÀÁµÃ°²·Ö

    2017-04-28 14:02

  • vueÈ«¾ÖÅäÖÃ----С°×»ù´¡Æª - Ðǹâ±Ê

    vueÈ«¾ÖÅäÖÃ----С°×»ù´¡Æª - Ðǹâ±Ê

    2017-04-28 08:04

  • ×Ô¶¨ÒåinputĬÈÏplaceholderÑùʽ - СËé²½

    ×Ô¶¨ÒåinputĬÈÏplaceholderÑùʽ - СËé²½

    2017-04-20 13:00

ÍøÓѵãÆÀ
·