BootStrap-- buttons, images,

1, button

(1) Press the button of the functional classification

<body>
                <button type="button" class="btn btn-default">默认按钮</button>
                <button type="button" class="btn btn-primary">原始按钮</button><br><br>
                <button type="button" class="btn btn-success">成功按钮</button>
                <button type="button" class="btn btn-info">信息按钮</button><br><br>
                <button type="button" class="btn btn-warning">警告按钮</button>
                <button type="button" class="btn btn-danger">危险按钮</button>
                <button type="button" class="btn btn-link">链接按钮</button><br><br>
</body>

effect:

 

 (2) the size of the button pressed Category:

  < Body > 
               < Button type = "Button" class = "BTN BTN-Primary BTN-LG" > large original button </ Button > 
               < Button type = "Button" class = "BTN BTN-default BTN-LG" > Large button </ button > < br > < br > 
               < button type = "button" class = "BTN-BTN Primary" > default size of the original button </ button > 
               <button type="button" class="btn btn-default"> 默认大小的按钮</button><br><br>
               <button type="button" class="btn btn-primary btn-sm">小的原始按钮</button>
               <button type="button" class="btn btn-default btn-sm">小的按钮</button><br><br>
               <button type="button" class="btn btn-primary btn-xs"><>Button</Particularly small button original
               button type="button" class="btn btn-default btn-xs">特别小的按钮</button><br><br>
               <button type="button" class="btn btn-primary btn-lg btn-block">块级的原始按钮</button>
               <button type="button" class="btn btn-default btn-lg btn-block">块级的按钮</button>
      </body>

 

 

(3) classification status button (to activate, deactivate)

<body>
        <button type="button" class="btn btn-default btn-lg ">默认按钮</button>
           <button type="button" class="btn btn-default btn-lg active">激活按钮</button>
           <button type="button" class="btn btn-primary btn-lg ">原始按钮</button>
           <button type="button" class="btn btn-Primary-btn the Active LG " activate the original button></button>
      </body>

 

 

 <body>
         <button type="button" class="btn btn-primary btn-lg ">原始按钮</button>
         <button type="button" class="btn btn-primary btn-lg" disabled="disabled">禁用的原始按钮</button
 </body>

 

 Button is disabled, can not be clicked.

2 pictures

(1) picture styles:

Add fillets to a picture:

 <img width="300" height="200" src="../img/1.jpg" class="img-rounded"/>

 

 The picture becomes circular:

<img width="300" height="200" src="../img/1.jpg" class="img-circle"/>

 

 Thumbnail feature:

 <img width="300" height="200" src="../img/1.jpg" class="img-thumbnail"/>

 

 (2) responsive image (the max-width: 100%; and height: auto; style is applied on the image)

 <img width="300" height="200" src="../img/1.jpg" class="img-rounded" class="img-responsive"/>

 

Guess you like

Origin www.cnblogs.com/zhai1997/p/12238621.html