local na rede Internet:Bootstrap · A biblioteca HTML mais popular, CSS e JS do mundo.contente
Bootstrap·ThemostpopularHTML,CSS,andJSlibraryintheworld.window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+newDate;ga('create','UA--10','getbootstrap.com');ga('set','anonymizeIp',true);ga('send','peview');SkiptomaincontentBootstrapBootstrapDocsExamplesIconsThemesBlogGitHubGitHubTwitterTwitterOpenCollectiveOpenCollectiveBootstrapBootstrap v5.3(switchtootherversions)v5releasesLatest(5.3.x)v5.2.3v5.1.3v5.0.2Previousreleasesv4.6.xv3.4.1v2.3.2AllversionsTogglethemeLightDarkAutoGetSecurityUpdatesforBootstrap3&4Buildfast,responsivesiteswith BootstrapPowerful,extensible,andfeature-packedfrontendtoolkit.BuildandcustomizewithSass,utilizeprebuiltgridsystemandcomponents,andbringprojectstolifewithpowerfulJaScriptplugins.npmibootstrap@5.3.Bootstrap · A biblioteca HTML mais popular, CSS e JS do mundo.3ReadthedocsCurrentlyv5.3.3·Download·AllreleasesGetstartedanywayyou wantJumprightintobuildingwithBootstrap—usetheCDN,installitviapackemaner,ordownloadthesourcecode.ReadinstallationdocsInstallviapackemanerInstallBootstrap’ssourceSassandJaScriptfilesvianpm,RubyGems,Composer,orMeteor.Packemanedinstallsdon’tincludedocumentationorourfullbuildscripts.YoucanalsouseanydemofromourExamplesrepotoquicklyjumpstartBootstrapprojects.npminstallbootstrap@5.3.3geminstallbootstrap-v5.3.3Readourinstallationdocsformoreinfoandadditionalpackemaners.IncludeviaCDNWhenyouonlyneedtoincludeBootstrap’scompiledCSSorJS,youcanusejsDelivr.Seeitinactionwithoursimplequickstart,orbrowsetheexamplestojumpstartyournextproject.YoucanalsochoosetoincludePopperandourJSseparately.<linkhref=34;cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css34;rel=34;stylesheet34;integrity=34;sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH34;crossorigin=34;anonymoBootstrap · A biblioteca HTML mais popular, CSS e JS do mundo.us34;><scriptsrc=34;cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js34;integrity=34;sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVBootstrap · A biblioteca HTML mais popular, CSS e JS do mundo.ZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz34;crossorigin=34;anonymous34;></script>ReadourgettingstartedguidesGetajumponincludingBootstrap'ssourcefilesinanewprojectwithourofficialguides.WebpackParcelViteCustomizeeverythingwith SassBootstraputilizesSassforamodularandcustomizablearchitecture.Importonlythecomponentsyouneed,enableglobaloptionslikegradientsandshadows,andwriteyourownCSSwithourvariables,maps,functions,andmixins.LearnmoreaboutcustomizingIncludeallofBootstrap’sSassImportonestylesheetandyou'reofftotheraceswitheveryfeatureofourCSS.//Variableoverridesfirst$primary:#900;$enable-shadows:true;$prefix:34;mo-34;;//ThenimportBootstrap@import34;../node_modules/bootstrap/scss/bootstrap34;;LearnmoreaboutourglobalSassoptions.IncludewhatyouneedTheeasiestwaytocustomizeBootstrap—includeonlytheCSSyouneed.//Functionsfirst@import34;../node_modules/bootstrap/scss/functions34;;//Variableoverridessecond$primary:#900;$enable-shadows:true;$prefix:34;mo-34;;//RequiredBootstrapimports@import34;../node_modules/bootstrap/scss/variables34;;@import34;../node_modules/bootstrap/scss/variables-dark34;;@import34;../node_modules/bootstrap/scss/maps34;;@import34;../node_modules/bootstrap/scss/mixins34;;@import34;../node_modules/bootstrap/scss/root34;;//Optionalcomponents@import34;../node_modules/bootstrap/scss/utilities34;;@import34;../node_modules/bootstrap/scss/reboot34;;@import34;../node_modules/bootstrap/scss/containers34;;@import34;../node_modules/bootstrap/scss/grid34;;@import34;../node_modules/bootstrap/scss/helpers34;;@import34;../node_modules/bootstrap/scss/utilities/api34;;LearnmoreaboutusingBootstrapwithSass.Buildandextendinreal-timewithCSS variablesBootstrap5isevolvingwitheachreleasetobetterutilizeCSSvariablesforglobalthemestyles,individualcomponents,andevenutilities.Weprovidedozensofvariablesforcolors,fontstyles,andmoreata:rootlevelforuseanywhere.Oncomponentsandutilities,CSSvariablesarescopedtotherelevantclassandcaneasilybemodified.LearnmoreaboutCSSvariablesUsingCSSvariablesUseanyofourglobal:rootvariablestowritenewstyles.CSSvariablesusethevar(--bs-variableName)syntaxandcanbeinheritedbychildrenelements..component{color:var(--bs-gray-800);background-color:var(--bs-gray-100);border:1pxsolidvar(--bs-gray-200);border-radius:.25rem;}.component-header{color:var(--bs-purple);}CustomizingviaCSSvariablesOverrideglobal,component,orutilityclassvariablestocustomizeBootstrapjusthowyoulike.Noneedtoredeclareeachrule,justanewvariablevalue.body{--bs-body-font-family:var(--bs-font-monospace);--bs-body-line-height:1.4;--bs-body-bg:var(--bs-gray-100);}.table{--bs-table-color:var(--bs-gray-600);--bs-table-bg:var(--bs-gray-100);--bs-table-border-color:transparent;}Components,meettheUtility APINewinBootstrap5,ourutilitiesarenowgeneratedbyourUtilityAPI.Webuiltitasafeature-packedSassmapthatcanbequicklyandeasilycustomized.It'sneverbeeneasiertoadd,remove,ormodifyanyutilityclasses.Makeutilitiesresponsive,addpseudo-classvariants,andgivethemcustomnames.QuicklycustomizecomponentsApplyanyofourincludedutilityclassestoourcomponentstocustomizetheirappearance,likethenigationexamplebelow.Therearehundredsofclassesailable—frompositioningandsizingtocolorsandeffects.MixthemwithCSSvariableoverridesforevenmorecontrol.HomeProfileContactHomeProfileContact<ulclass=34;nn-pillsn-fillgap-2p-1smallbg-primaryrounded-5shadow-sm34;id=34;pillN234;role=34;tablist34;style=34;--bs-n-link-color:var(--bs-white);--bs-n-pills-link-active-color:var(--bs-primary);--bs-n-pills-link-active-bg:var(--bs-white);34;><liclass=34;n-item34;role=34;presentation34;><buttonclass=34;n-linkactiverounded-534;id=34;home-tab234;data-bs-toggle=34;tab34;type=34;button34;role=34;tab34;aria-selected=34;true34;>Home</button></li><liclass=34;n-item34;role=34;presentation34;><buttonclass=34;n-linkrounded-534;id=34;profile-tab234;data-bs-toggle=34;tab34;type=34;button34;role=34;tab34;aria-selected=34;false34;>Profile</button></li><liclass=34;n-item34;role=34;presentation34;><buttonclass=34;n-linkrounded-534;id=34;contact-tab234;data-bs-toggle=34;tab34;type=34;button34;role=34;tab34;aria-selected=34;false34;>Contact</button></li></ul>ExplorecustomizedcomponentsCreateandextendutilitiesUseBootstrap'sutilityAPItomodifyanyofourincludedutilitiesorcreateyourowncustomutilitiesforanyproject.ImportBootstrapfirst,thenuseSassmapfunctionstomodify,add,orremoveutilities.@import34;bootstrap/scss/bootstrap34;;$utilities:map-merge($utilities,(34;cursor34;:(property:cursor,class:cursor,responsive:true,values:autopointergrab,)));ExploretheutilityAPIPowerfulJaScriptpluginswithout jQueryAddtoggleablehiddenelements,modalsandoffcanvasmenus,popoversandtooltips,andsomuchmore—allwithoutjQuery.Bootstrap'sJaScriptisHTML-first,meaningmostpluginsareaddedwithdataattributesinyourHTML.Needmorecontrol?Includeindividualpluginsprogrammatically.LearnmoreaboutBootstrapJaScriptDataattributeAPIWhywritemoreJaScriptwhenyoucanwriteHTML?NearlyallofBootstrap'sJaScriptpluginsfeatureafirst-classdataAPI,allowingyoutouseJaScriptjustbyaddingdataattributes.DropdownDropdownitemDropdownitemDropdownitem<divclass=34;dropdown34;><buttonclass=34;btnbtn-primarydropdown-toggle34;type=34;button34;data-bs-toggle=34;dropdown34;aria-expanded=34;false34;>Dropdown</button><ulclass=34;dropdown-menu34;><li><buttonclass=34;dropdown-item34;type=34;button34;>Dropdownitem</button></li><li><buttonclass=34;dropdown-item34;type=34;button34;>Dropdownitem</button></li><li><buttonclass=34;dropdown-item34;type=34;button34;>Dropdownitem</button></li></ul></div>LearnmoreaboutourJaScriptasmodulesandusingtheprogrammaticAPI.ComprehensivesetofpluginsBootstrapfeaturesadozenpluginsthatyoucandropintoanyproject.Droptheminallatonce,orchoosejusttheonesyouneed.AlertShowandhidealertmessestoyourusers.ButtonProgrammaticallycontroltheactivestateforbuttons.CarouselAddslideshowstoanype,includingsupportforcrossfade.CollapseExpandandcollapseareasofcontent,orcreateaccordions.DropdownCreatemenusoflinks,actions,forms,andmore.ModalAddflexibleandresponsivedialogstoyourproject.OffcanvasBuildandtogglehiddensidebarsintoanype.PopoverCreatecustomoverlays.BuiltonPopper.ScrollspyAutomaticallyupdateactivenlinksbasedonpescroll.TabAllowBootstrapncomponentstotogglecontents.ToastShowandhidenotificationstoyourvisitors.TooltipReplacebrowsertooltipswithcustomones.BuiltonPopper.PersonalizeitwithBootstrap IconsBootstrapIconsisanopensourceSVGiconlibraryfeaturingover1,800glyphs,withmoreaddedeveryrelease.They'redesignedtoworkinanyproject,whetheryouuseBootstrapitselfornot.UsethemasSVGsoriconfonts—bothoptionsgiveyouvectorscalingandeasycustomizationviaCSS.GetBootstrapIconsMakeityourswithofficialBootstrapThemesTakeBootstraptothenextlevelwithpremiumthemesfromtheofficialBootstrapThemesmarketplace.ThemesarebuiltonBootstrapastheirownextendedframeworks,richwithnewcomponentsandplugins,documentation,andpowerfulbuildtools.BrowseBootstrapThemesBootstrapBootstrapDesignedandbuiltwithalltheloveintheworldbytheBootstrapteamwiththehelpofourcontributors.CodelicensedMIT,docsCCBY3.0.Currentlyv5.3.3.LinksHomeDocsExamplesIconsThemesBlogSwStoreGuidesGettingstartedStartertemplateWebpackParcelViteProjectsBootstrap5Bootstrap4IconsRFSExamplesrepoCommunityIssuesDiscussionsCorporatesponsorsOpenCollectiveStackOverflow