Okwolesebwa eby'obugagga
Amangu era mu kuddamu okukyusa omuwendo gw'okulaga ebitundu n'ebirala n'ebikozesebwa byaffe eby'okulaga. Mulimu okuwagira ebimu ku miwendo egy’enjawulo, wamu n’ebimu ku by’okwongerako eby’okufuga okwolesebwa ng’okuba ebitabo.
Kyusa omuwendo gw'ekintu display
n'ebika byaffe eby'omugaso eby'okulaga ebiddamu. Tuwagira mu bugenderevu ekitundu ekitono kyokka eky'emiwendo gyonna egisoboka egya display
. Ebisulo osobola okubigatta ku bikolwa eby’enjawulo nga bw’oba weetaaga.
Laga kiraasi z’omugaso ezikola ku bifo byonna eby’okumenya , okuva xs
ku okutuuka ku xl
, tebirina kufunza kwa kumenya mu byo. Kino kiri bwe kityo kubanga kiraasi ezo zikozesebwa okuva min-width: 0;
n’okudda waggulu, era bwe zityo tezisibibwa ku kubuuza kwa mikutu. Ebifo ebisigaddewo, naye, bibaamu enfunyiro y’okumenya.
Nga bwe kiri, kiraasi zituumibwa amannya nga tukozesa ensengeka:
.d-{value}
-axs
.d-{breakpoint}-{value}
kubangasm
,md
,lg
, nexl
.
Awali omuwendo gwe gumu ku:
none
inline
inline-block
block
table
table-cell
table-row
flex
inline-flex
Ebibuuzo by'emikutu bikola ku bugazi bwa screen n'ekifo ekiweereddwa eky'okumenyawo oba ekinene . Okugeza, .d-lg-none
sets display: none;
ku byombi lg
ne xl
screens.
Okusobola okukulaakulanya amangu essimu, kozesa ebika by’okwolesebwa ebiddamu okulaga n’okukweka ebintu okusinziira ku kyuma. Weewale okukola enkyusa ez’enjawulo ddala ez’omukutu gwe gumu, mu kifo ky’ekyo kwekweka elementi mu ngeri eddamu ku buli sayizi ya screen.
Okukweka elementi kozesa bukozesa .d-none
kiraasi oba emu ku .d-{sm,md,lg,xl}-none
kiraasi ku nkyukakyuka yonna eya screen eddamu.
Okulaga elementi yokka ku bbanga eriweereddwa erya sayizi za screen osobola okugatta .d-*-none
kiraasi emu ne .d-*-*
kiraasi, okugeza .d-none .d-md-block .d-xl-none
ojja kukweka elementi ku sayizi za screen zonna okuggyako ku byuma ebya wakati n’ebinene.
Enkula y’olutimbe | Essomo |
---|---|
Ekwekeddwa ku bonna | .d-none |
Ekwekeddwa ku xs zokka | .d-none .d-sm-block |
Ekwekeddwa ku sm yokka | .d-sm-none .d-md-block |
Ekwekeddwa ku md yokka | .d-md-none .d-lg-block |
Ekwekeddwa ku lg yokka | .d-lg-none .d-xl-block |
Ekwekeddwa ku xl yokka | .d-xl-none |
Kirabika ku bonna | .d-block |
Erabika ku xs yokka | .d-block .d-sm-none |
Erabika ku sm yokka | .d-none .d-sm-block .d-md-none |
Erabika ku md yokka | .d-none .d-md-block .d-lg-none |
Erabika ku lg yokka | .d-none .d-lg-block .d-xl-none |
Erabika ku xl yokka | .d-none .d-xl-block |
Kyusa display
omuwendo gwa elementi nga okuba ebitabo ne kiraasi zaffe ez'omugaso ogw'okulaga okukuba ebitabo. Mulimu okuwagira empisa ze zimu nga utilities display
zaffe eziddamu ..d-*
.d-print-none
.d-print-inline
.d-print-inline-block
.d-print-block
.d-print-table
.d-print-table-row
.d-print-table-cell
.d-print-flex
.d-print-inline-flex
Ebika by’okukuba n’okulaga bisobola okugattibwa.