Hla mus rau cov ntsiab lus tseem ceeb Hla mus rau docs navigation
Check
in English

Kev xaiv

Yooj yim hloov kho Bootstrap nrog cov sib txawv built-in kom yooj yim toggle thoob ntiaj teb CSS nyiam rau kev tswj cov qauv thiab tus cwj pwm.

Customize Bootstrap nrog peb cov ntaub ntawv sib txawv ua ke thiab yooj yim toggle thoob ntiaj teb CSS nyiam nrog $enable-*Sass hloov tshiab. Override ib tug variable tus nqi thiab recompile nrog npm run testraws li xav tau.

Koj tuaj yeem nrhiav thiab kho qhov hloov pauv no rau cov kev xaiv thoob ntiaj teb tseem ceeb hauv Bootstrap cov scss/_variables.scssntaub ntawv.

Hloov pauv Tus nqi Kev piav qhia
$spacer 1rem(default), lossis ib qho nqi> 0 Qhia meej tus nqi spacer default rau programmatically tsim peb spacer utilities .
$enable-rounded true(default) los yogfalse Ua kom cov border-radiusqauv uas tau hais ua ntej ntawm ntau yam khoom.
$enable-shadows truelos yog false(default) Pab kom zoo nkauj zoo box-shadownkauj ua ntej ntawm ntau yam khoom. Tsis cuam tshuam box-shadows siv rau lub xeev tsom.
$enable-gradients truelos yog false(default) Ua kom cov gradients predefined los ntawm background-imagecov qauv ntawm ntau yam khoom.
$enable-transitions true(default) los yogfalse Enables predefined transitions ntawm ntau yam Cheebtsam.
$enable-reduced-motion true(default) los yogfalse Tso cai rau prefers-reduced-motioncov lus nug xov xwm , uas txwv tsis pub qee cov animations / kev hloov pauv raws li cov neeg siv browser / kev ua haujlwm nyiam.
$enable-grid-classes true(default) los yogfalse Ua kom muaj cov chav kawm CSS rau cov kab sib chaws (xws li .row, .col-md-1, thiab lwm yam).
$enable-container-classes true(default) los yogfalse Pab kom tsim cov chav kawm CSS rau layout ntim. (Tshiab hauv v5.2.0)
$enable-caret true(default) los yogfalse Enables pseudo element caret rau .dropdown-toggle.
$enable-button-pointers true(default) los yogfalse Ntxiv "tes" tus cursor rau cov ntsiab lus uas tsis yog neeg xiam oob qhab.
$enable-rfs true(default) los yogfalse Ntiaj teb no enables RFS .
$enable-validation-icons true(default) los yogfalse Ua kom background-imagecov cim nyob rau hauv cov ntawv nyeem thiab qee cov ntaub ntawv kev cai rau kev siv tau.
$enable-negative-margins truelos yog false(default) Pab kom tsim cov khoom siv tsis zoo .
$enable-deprecation-messages true(default) los yogfalse Teem kom falsezais cov lus ceeb toom thaum siv ib qho ntawm cov khoom siv tsis txaus ntseeg thiab cov haujlwm uas tau npaj yuav raug tshem tawm hauv v6.
$enable-important-utilities true(default) los yogfalse Enables lub !importantntsiab lus hauv cov chav kawm siv hluav taws xob.
$enable-smooth-scroll true(default) los yogfalse Siv scroll-behavior: smooththoob ntiaj teb, tshwj tsis yog rau cov neeg siv thov kom txo cov lus tsa suab los ntawm prefers-reduced-motionkev nug xov xwm