search
HomeWeb Front-endHTML TutorialIntroduction to typography style, list style, and table style of bootstrap layout

This article will introduce to you the layout style, list style, and table style of bootstrap layout. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. If you want to learn and get more bootstrap related video tutorials, you can also visit: bootstrap tutorial!

Layout container

bootstrap It believes that every web page should have a fixed width, it It will be centered horizontally and vertically inside the container or occupy 100% of the width of the container.

Bootstrap sets the global font-size to 14px, the line height to 1.428 (20px),

the paragraph line height to equal 1/2 (10px), and the color to # 333

1) Fixed width

.container class is used for fixed width and Containers that support responsive layout (horizontally centered).

2) Percent width

##.container-fluid Container for 100% width, occupying the entire visualization window.

Typesetting style

.text-center Center alignment

.text-right Align right

.text-left Align left

.text-uppercase Used to convert lowercase letters to uppercase letters

.text-lowercase is used to convert uppercase letters to lowercase letters

.text-capitalize is used to capitalize the first letter

The tag indicates an abbreviation or abbreviation, such as "WWW" or "NATO" (favorable for search engine searches)

# Highlight text (shading)

The following are the tags that have been copied by bootstrap

## is used to represent computer source code or other text content that can be read by a machine. (Adding shading)<p style="text-align:left;"><span style="font-family:'PingFangSC-Regular', Verdana, Arial, '微软雅黑', '宋体';color:#000000;"><span style="font-size:14px;background-color:rgb(253,252,248);"></span></span>##</p> <pre class="brush:php;toolbar:false"> Common applications represent the source code of the computer (Adding shading and borders)&lt;p style=&quot;text-align:left;&quot;&gt;&lt;span style=&quot;font-family:'PingFangSC-Regular', Verdana, Arial, '微软雅黑', '宋体';color:#000000;&quot;&gt; &lt;span style=&quot;font-size:14px;background-color:rgb(253,252,248);&quot;&gt;&lt;span style=&quot;color:rgb(0,0,0);font-family:'PingFangSC-Regular', Verdana, Arial, '微软雅黑', '宋体';font-size:14px;text-align:left;background-color:rgb(253,252,248);&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;List style&lt;p&gt;&lt;span style=&quot;color:rgb(204,102,0);&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:18px;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;##List: ordered list, Unordered list, definition list. &lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;.sr-only &lt;/span&gt;Hide an element, which can be a row, a column, or the entire table&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;&lt;em&gt;.list-unstyled&lt;/em&gt; Used to remove the bullets in front of the list and remove the default margin value of the list &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;.list-inline will Arrange the contents of the list into the same row, and add a small amount of padding value &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;.dl-horizontal&lt;/span&gt;&lt;span style=&quot;font-size:14px;color:#ff6666;&quot;&gt; to define the list to use &lt;/span&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;, will Arrange the definition title and definition description information on the same line, and arrange the content in the dt tag and dd tag on the same line&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:rgb(0,0,0);&quot;&gt;&lt;span style=&quot;color:rgb(204,102,0);&quot;&gt;&lt;strong&gt;&lt;span style=&quot;font-size:18px;&quot;&gt;Table style&lt;/span&gt; &lt;/strong&gt;&lt;/span&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;##.table&lt;em&gt; Adding the .table class to any &lt;table&gt; tag can give it a basic style, a few padding and horizontal dividing lines. &lt;p&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;.table-bordered&lt;em&gt; Add border lines to the table and each cell in it&lt;/em&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;. table-striped &lt;em&gt;Achieve the color-changing effect of each row (&lt;/em&gt;&lt;/span&gt;IE8 does not support &lt;span style=&quot;font-size:14px;color:#ff6666;&quot;&gt;&lt;/span&gt;)&lt;span style=&quot;font-size:14px;color:#000000;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre class=&quot;brush:php;toolbar:false&quot;&gt;table.table-striped tr:nth-child(odd){             background:red;             }             /*控制各行的颜色,odd控制下标为偶数的行,even控制下标为奇数的行*/</pre> <p>.table-hover<span style="color:rgb(0,0,0);font-size:14px;"></span>Realize the effect of mouse placement<span style="color:rgb(0,0,0);font-size:14px;"></span></p> <pre class="brush:php;toolbar:false">  table.table-hover tr:hover{             background:red;             }             /*控制各行的颜色,odd控制下标为偶数的行,even控制下标为奇数的行*/</pre> <p><span style="font-size:14px;color:#000000;">.table-condensed<em> For a compact table, halve the padding value</em></span></p> <p><span style="color:#000000;"><span style="font-size:14px;">.table-responsive<em> Set responsiveness to the table parent element. When the screen is smaller than 768px, a border will appear around it</em></span></span></p> <p><span style="font-size:14px;color:#000000;"> The status class<strong></strong></span></p> <p> can only be set for tr or td or th, and cannot be set for table tags<span style="color:rgb(0,0,0);font-size:14px;"></span></p> <p>Through these status classes Colors can be set for rows or cells<span style="color:rgb(0,0,0);font-size:14px;"></span></p> <table class="reference" style="color:rgb(51,51,51);font-size:12px;border:0px;font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;background-color:rgb(255,255,255);"><tbody> <tr style="border-top:0px;background-color:rgb(246,244,240);" class="firstRow"> <th style="border-color: rgb(85, 85, 85); font-size: 12px; color: rgb(255, 255, 255); background-color: rgb(85, 85, 85); vertical-align: top; width: 168px; word-break: break-all;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="background-color:rgb(255,255,255);">Category</span></span></th> <th style="border-color:rgb(85,85,85);font-size:12px;color:rgb(255,255,255);background-color:rgb(85,85,85);vertical-align:top;width:464px;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">##Description<span style="background-color:rgb(255,255,255);"></span></span></th> <th style="border-color:rgb(85,85,85);font-size:12px;color:rgb(255,255,255);background-color:rgb(85,85,85);vertical-align:top;width:76px;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">Instance<span style="background-color:rgb(255,255,255);"></span></span></th> </tr> <tr style="border-top:0px;background-color:rgb(255,255,255);"> <td style="border-color:rgb(212,212,212);font-size:13px;min-width:24px;line-height:2em;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">.active<span style="font-size:12px;background-color:rgb(255,255,255);"></span></span></td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">Apply the hover color to the row or cell<span style="font-size:12px;background-color:rgb(255,255,255);"></span></span></td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">Try it out<span style="background-color:rgb(255,255,255);"></span></span></td> </tr> <tr style="border-top:0px;background-color:rgb(246,244,240);"> <td style="border-color:rgb(212,212,212);font-size:13px;min-width:24px;line-height:2em;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">.success<span style="font-size:12px;background-color:rgb(255,255,255);"></span></span></td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">#Indicates successful operation<span style="font-size:12px;background-color:rgb(255,255,255);"></span></span></td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">Attempt one time<span style="background-color:rgb(255,255,255);"></span></span></td> </tr> <tr style="border-top:0px;background-color:rgb(255,255,255);"> <td style="border-color:rgb(212,212,212);font-size:13px;min-width:24px;line-height:2em;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="font-size:12px;background-color:rgb(255,255,255);">.info</span></span></td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">##Operations indicating changes in information<span style="font-size:12px;background-color:rgb(255,255,255);"></span></span></td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;"><span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;">Try it<span style="background-color:rgb(255,255,255);"></span></span></td> </tr> <tr style="border-top:0px;background-color:rgb(246,244,240);"> <td style="border-color:rgb(212,212,212);font-size:13px;min-width:24px;line-height:2em;vertical-align:top;">##.warning<span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="font-size:12px;background-color:rgb(255,255,255);"></span></span> </td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;">Indicates a warning operation<span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="font-size:12px;background-color:rgb(255,255,255);"></span></span> </td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;">Try it<span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="background-color:rgb(255,255,255);"></span></span> </td> </tr> <tr style="border-top:0px;background-color:rgb(255,255,255);"> <td style="border-color:rgb(212,212,212);font-size:13px;min-width:24px;line-height:2em;vertical-align:top;">.danger<span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="font-size:12px;background-color:rgb(255,255,255);"></span></span> </td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;">Indicates a dangerous operation<span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="font-size:12px;background-color:rgb(255,255,255);"></span></span> </td> <td style="border-color:rgb(212,212,212);font-size:13px;line-height:2em;min-width:24px;vertical-align:top;">Attempt one time<span style="font-family:'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', Arial, sans-serif;color:#333333;"><span style="background-color:rgb(255,255,255);"></span></span> </td> </tr> <p style="text-align:left;"><span style="font-family:'Microsoft YaHei';font-size:16px;color:#333333;"><span style="background-color:rgb(255,255,255);"><strong>For details, please see:</strong></span></span></p> <p><span style="color:rgb(0,0,0);font-size:14px;"></span></p> <table class="table table-bordered" style="border-spacing: 0px; background-color: rgb(255, 255, 255); border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); font-family: " helvetica neue arial sans-serif font-size:><tbody> <tr class="success firstRow"> ##Product name<td style="line-height:1.42857;vertical-align:top;background-color:rgb(223,240,216);"></td>Product price<td style="line-height:1.42857;vertical-align:top;background-color:rgb(223,240,216);"></td>Product status<td style="line-height:1.42857;vertical-align:top;background-color:rgb(223,240,216);"></td>success color<td style="line-height:1.42857;vertical-align:top;background-color:rgb(223,240,216);"></td> </tr> <tr class="active">Xiaomi mobile phone<td style="line-height:1.42857;vertical-align:top;background-color:rgb(245,245,245);"></td>1499<td style="line-height:1.42857;vertical-align:top;background-color:rgb(245,245,245);"></td> Delivery<td style="line-height:1.42857;vertical-align:top;background-color:rgb(245,245,245);"></td>active color<td style="line-height:1.42857;vertical-align:top;background-color:rgb(245,245,245);"></td> </tr> <tr class="info">Xiaomi mobile phone<td style="line-height:1.42857;vertical-align:top;background-color:rgb(217,237,247);"></td>1499<td style="line-height:1.42857;vertical-align:top;background-color:rgb(217,237,247);"></td> Delivery<td style="line-height:1.42857;vertical-align:top;background-color:rgb(217,237,247);"></td>infoColor<td style="line-height:1.42857;vertical-align:top;background-color:rgb(217,237,247);"></td> </tr> <tr class="warning">Xiaomi mobile phone<td style="line-height:1.42857;vertical-align:top;background-color:rgb(252,248,227);"></td>1499<td style="line-height:1.42857;vertical-align:top;background-color:rgb(252,248,227);"></td>Delivery<td style="line-height:1.42857;vertical-align:top;background-color:rgb(252,248,227);"></td>warningColor<td style="line-height:1.42857;vertical-align:top;background-color:rgb(252,248,227);"></td> </tr> <tr class="danger">Xiaomi mobile phone<td style="line-height:1.42857;vertical-align:top;background-color:rgb(242,222,222);"></td>1499<td style="line-height:1.42857;vertical-align:top;background-color:rgb(242,222,222);"></td>Delivery<td style="line-height:1.42857;vertical-align:top;background-color:rgb(242,222,222);"></td> <td style="line-height: 1.42857; vertical-align: top; background-color: rgb(242, 222, 222); word-break: break-all;">danger color<p></p> </td> </tr> </tbody></table>Summary: The above is the entire content of this article, I hope it will be helpful to everyone's study. <p></p> </tbody></table> </table></em></span></p></pre>

The above is the detailed content of Introduction to typography style, list style, and table style of bootstrap layout. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:CSDN. If there is any infringement, please contact admin@php.cn delete
The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

HTML: The Structure, CSS: The Style, JavaScript: The BehaviorHTML: The Structure, CSS: The Style, JavaScript: The BehaviorApr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML: Evolution and Trends in Web DesignThe Future of HTML: Evolution and Trends in Web DesignApr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative OverviewHTML vs. CSS vs. JavaScript: A Comparative OverviewApr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML: Is It a Programming Language or Something Else?HTML: Is It a Programming Language or Something Else?Apr 15, 2025 am 12:13 AM

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML: Building the Structure of Web PagesHTML: Building the Structure of Web PagesApr 14, 2025 am 12:14 AM

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

From Text to Websites: The Power of HTMLFrom Text to Websites: The Power of HTMLApr 13, 2025 am 12:07 AM

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

Understanding HTML, CSS, and JavaScript: A Beginner's GuideUnderstanding HTML, CSS, and JavaScript: A Beginner's GuideApr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.