Dab tsi yog Mixins hauv bootstrap?
Dab tsi yog Mixins hauv bootstrap?

Video: Dab tsi yog Mixins hauv bootstrap?

Video: Dab tsi yog Mixins hauv bootstrap?
Video: xf txawj tsu kwm qha txug kev ua neej nyob huv nplaj teb daim 3 2024, Hlis ntuj nqeg
Anonim

Ib tug ntawm mixins tso cai rau koj los txhais qhov loj ntawm kab koj xav siv thaum lwm tus tso cai rau koj thawb, rub, thiab offset kab. Yog koj paub Bootstrap (los yog ib qho kab sib chaws), kab sib chaws yog raws li kab uas muaj kab.

Hais txog qhov no, kev siv Mixins yog dab tsi?

Lub hom phiaj tseem ceeb ntawm a mixin yog los ua ib txheej ntawm cov khoom reusable. Zoo li Sass variables (qhov twg koj txhais koj cov txiaj ntsig ntawm ib qho chaw), Sass mixins tso cai rau koj los txhais cov khoom ntawm ib qho chaw.

Tom qab ntawd, lo lus nug yog, puas yog bootstrap siv CSS? Bootstrap siv HTML cov ntsiab lus thiab CSS cov khoom uas xav tau HTML5 doctype. Bootstrap 3 yog tsim los teb rau cov khoom siv mobile. Mobile-thawj cov qauv yog ib feem ntawm lub hauv paus ntsiab lus.

Tsis tas li cov lus nug yog, bootstrap yog dab tsi thiab nws ua haujlwm li cas?

Bootstrap yog lub hauv paus muaj zog pem hauv ntej-kawg siv los tsim cov vev xaib niaj hnub thiab web apps. Nws yog qhov qhib thiab siv dawb, tseem muaj ntau yam HTML thiab CSS cov qauv rau UI interface ntsiab xws li cov nyees khawm thiab cov ntawv. Bootstrap kuj txhawb JavaScript extensions.

Cov kab hauv chav kawm ua dab tsi hauv bootstrap?

Hauv Bootstrap , cov " kab " chav kawm yog siv feem ntau los tuav cov kab hauv nws. Bootstrap faib txhua kab nyob rau hauv ib daim phiaj ntawm 12 virtual kab.

Pom zoo: