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!

Using ID selectors is not inherently bad in CSS, but should be used with caution. 1) ID selector is suitable for unique elements or JavaScript hooks. 2) For general styles, class selectors should be used as they are more flexible and maintainable. By balancing the use of ID and class, a more robust and efficient CSS architecture can be implemented.

HTML5'sgoalsin2024focusonrefinementandoptimization,notnewfeatures.1)Enhanceperformanceandefficiencythroughoptimizedrendering.2)Improveaccessibilitywithrefinedattributesandelements.3)Addresssecurityconcerns,particularlyXSS,withwiderCSPadoption.4)Ensur

HTML5aimedtoimprovewebdevelopmentinfourkeyareas:1)Multimediasupport,2)Semanticstructure,3)Formcapabilities,and4)Offlineandstorageoptions.1)HTML5introducedandelements,simplifyingmediaembeddingandenhancinguserexperience.2)Newsemanticelementslikeandimpr

IDsshouldbeusedforJavaScripthooks,whileclassesarebetterforstyling.1)Useclassesforstylingtoallowforeasierreuseandavoidspecificityissues.2)UseIDsforJavaScripthookstouniquelyidentifyelements.3)Avoiddeepnestingtokeepselectorssimpleandimproveperformance.4

Classselectorsareversatileandreusable,whileidselectorsareuniqueandspecific.1)Useclassselectors(denotedby.)forstylingmultipleelementswithsharedcharacteristics.2)Useidselectors(denotedby#)forstylinguniqueelementsonapage.Classselectorsoffermoreflexibili

IDsareuniqueidentifiersforsingleelements,whileclassesstylemultipleelements.1)UseIDsforuniqueelementsandJavaScripthooks.2)Useclassesforreusable,flexiblestylingacrossmultipleelements.

Using a class-only selector can improve code reusability and maintainability, but requires managing class names and priorities. 1. Improve reusability and flexibility, 2. Combining multiple classes to create complex styles, 3. It may lead to lengthy class names and priorities, 4. The performance impact is small, 5. Follow best practices such as concise naming and usage conventions.

ID and class selectors are used in CSS for unique and multi-element style settings respectively. 1. The ID selector (#) is suitable for a single element, such as a specific navigation menu. 2.Class selector (.) is used for multiple elements, such as unified button style. IDs should be used with caution, avoid excessive specificity, and prioritize class for improved style reusability and flexibility.


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

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version
Visual web development tools

Dreamweaver CS6
Visual web development tools

SublimeText3 Chinese version
Chinese version, very easy to use
