当前位置: 首页 > 工具软件 > Img Notes > 使用案例 >

Bootstrap Study Notes

敖硕
2023-12-01

Bootstrap Study Notes

Taking notes in English is just for practicing my English ability. : )

Bootstrap will adjust the size of the HTML element according to the size of your screen.
You only need to add the following code to the beginning of your HTML to add Bootstrap to any application:

<link rel="stylesheet" 
href="//cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap.min.css"/>

There are a lot of calss styles in bootstrap:

ClassEffect
rowMake the elements on the same row
text-centerMake the elements in the middle
img-responsiveMake the width of the picture fit the width of the page
btnA button style
btn-blockMake it a block-level element (The button will stretch and fill the entire horizontal space of the page)
btn-primaryMake the button dark blue (It is used in the main actions of the users)
btn-infoMake the button light blue (It is used in operations that the users may take)
btn-dangerMake the button red (It is used to remind users that the operation is “destructive”)
btn-defaultThe default style
col-md-*md represents a medium, * represents a number, which specifies the column width of this element
col-xs-*xs represents a medium, * represents a number, which specifies the column width of this element (For smaller screens)
wellIt creates a visual sense of depth for the set of columns

And there are some other labels:

LabelEffect
spanYou can put several elements together, or even use this to specify styles for different parts of an element
iUsed to refer to icons

You can add the Font Awesome icon library to any application. You only need to add the following code to the HTML header:

<link rel="stylesheet" 
href="//cdn.bootcss.com/font-awesome/4.2.0/css/font-awesome.min.css"/>

The following are the some class attributes about i element:

ClassEffect
fa-thumbs-upA picture of a thumbs
fa-trashA picture of a trash can
fa-info-circleA picture of a circle with exclamatory mark
fa-paper-planeA picture of a paper plane
 类似资料:

相关阅读

相关文章

相关问答