±í¸ñ
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-**-*¿ØÖƳߴç
¡¡