What is the default font size of bootstrap
The default font size of bootstrap is "14px"; Bootstrap is an open source framework based on HTML, CSS, and JavaScript, used to quickly build responsive web pages based on PC and mobile devices, and the default line height is "20px", and the line height of the p element is "10px".
The operating environment of this tutorial: Windows 10 system, bootstrap version 5, DELL G3 computer
What is the default font size of bootstrap
Bootstrap’s global default font size is 14px
Bootstrap is an open source framework based on HTML CSS JavaScript, used to quickly build responsive web pages based on PC and mobile devices
bootstrap page layout
1. The default font size in Bootstrap is 14px, (Nativeapp font default is 17) line height is 20px,
The element is 1/2 line high (10px) and the color is #333
2. Title: h1~h6 (36px, 30px, 24px, 18px, 14px, 12px)
3.h tag The tag can be nested under, usually used as a subtitle. Under h1~h3: the size of the small element only accounts for 65% of the parent element (23.4px, 19.5px, 15.6px). Under h4~h6: the size of the small element only accounts for 65% of the parent element. Occupying 75% of the parent element (13.5px, 10.5px, 9px), the color of the small tag is light gray: #777, the line height is 1, and the thickness is 400.
4. Inline text element
Add mark:// Hello, listeners, this is China People’s Broadcasting and Television Station
Delete Text://I sold out before you came
Useless text://I have the same length as delete but I Really useless
Insert text://I am an Insert text
Emphasis text:,< ;strong>,
//<small>我是标准字号的85%</small> //<strong>我是加粗的:700</strong> //<em>我用的很多,因为我是歪的</em>
5.Alignment
<p class=’text-left’>我居左对齐</p> <p class=’text-center’>我居中对齐</p> <p class=’text-right’>我居右对齐</p> <p class=’text-justify’>我两端对齐,但是我支持度不高</p> <p class=’text-nowrap’>我不换行</p>
6.Case
<p class=’text-lowercase’>小写</p> <p class=’text-uppercase’>大写</p> <p class=’text-capitalize’>首字母大写</p>
7.Address text
//地址文本对原本的css样式做的复写,去掉了倾斜,设置了行高 <address> <strong>132132集团</strong> <p>电话:<small>(0232)1231321313</small><p> </address>
8.Quote Text
//左边有一个5px的边框线条 <blockquote>看看我左边</blockquote> <blockquote class=’blockquote-reverse’>又在右边了</blockquote> <blockquote class=’pull-right’>同上</blockquote>
9. List layout
//默认样式 <ul> <li>测试</li> <li>测试</li> <li>测试</li> </ul> //移除默认样式 <ul class=’list-unstyled’> <li>测试</li> <li>测试</li> <li>测试</li> </ul> //设置成内联 <ul class=’list-inline’> <li>测试</li> <li>测试</li> <li>测试</li> </ul>
Related recommendations: bootstrap tutorial
The above is the detailed content of What is the default font size of bootstrap. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Using Bootstrap in Vue.js is divided into five steps: Install Bootstrap. Import Bootstrap in main.js. Use the Bootstrap component directly in the template. Optional: Custom style. Optional: Use plug-ins.

How to use Bootstrap to get the value of the search bar: Determines the ID or name of the search bar. Use JavaScript to get DOM elements. Gets the value of the element. Perform the required actions.

Use Bootstrap to implement vertical centering: flexbox method: Use the d-flex, justify-content-center, and align-items-center classes to place elements in the flexbox container. align-items-center class method: For browsers that do not support flexbox, use the align-items-center class, provided that the parent element has a defined height.

There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.

There are two ways to create a Bootstrap split line: using the tag, which creates a horizontal split line. Use the CSS border property to create custom style split lines.

To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.

To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-

How to use the Bootstrap button? Introduce Bootstrap CSS to create button elements and add Bootstrap button class to add button text
