Source

Muuji hantida

Si degdeg ah oo ka jawaab celin leh u beddel qiimaha bandhiga qaybaha iyo in ka badan oo leh agabka bandhiga. Waxaa ku jira taageerada qaar ka mid ah qiyamka caadiga ah, iyo sidoo kale xoogaa dheeraad ah oo lagu xakameynayo bandhigga marka la daabacayo.

Sida ay u shaqeyso

Ku beddel qiimaha displayguriga fasalladayada utility soo bandhigay ee ka jawaabaya. Waxaan si ula kac ah u taageernaa qayb hoosaadka dhammaan qiimayaasha suurtagalka ah ee display. Fasallada waxaa lagu dari karaa saameyno kala duwan sida aad u baahan tahay.

Ogaysiis

Soo bandhig fasallada utility ee khuseeya dhammaan meelaha nasashada , laga bilaabo xsilaa xl, ma laha wax soo gaabin ah oo ku jira. Tani waa sababta oo ah fasalladaas waxaa laga dalbadaa min-width: 0;kor iyo kor, sidaas darteed kuma xirna su'aal warbaahineed. Dhibcaha soo haray, si kastaba ha ahaatee, waxaa ku jira soo gaabinta barta jabinta.

Sidan oo kale, fasallada waxaa lagu magacaabay qaab:

  • .d-{value}waayoxs
  • .d-{breakpoint}-{value}waayo sm, md, lgiyo xl.

Halka qiimuhu ka mid yahay:

  • none
  • inline
  • inline-block
  • block
  • table
  • table-cell
  • table-row
  • flex
  • inline-flex

Weydiimaha warbaahintu waxay saameeyaan ballaadhka shaashadda oo leh barta goynta ama ka weyn . Tusaale ahaan, .d-lg-nonedhejisyada display: none;labadaba lgiyo xlshaashadaha.

Tusaalooyinka

d-inline
d-inline
<div class="d-inline p-2 bg-primary text-white">d-inline</div>
<div class="d-inline p-2 bg-dark text-white">d-inline</div>
d-block d-block
<span class="d-block p-2 bg-primary text-white">d-block</span>
<span class="d-block p-2 bg-dark text-white">d-block</span>

Waxyaabaha qarinaya

Horumarka saaxiibtinimo ee moobilka dhaqsaha badan, isticmaal xiisado bandhig oo ka jawaabaya muujinta iyo qarinta walxaha aaladda. Ka fogow abuurista gebi ahaanba noocyo kala duwan oo isla goobta ah, taa beddelkeeda si taxaddar leh u qari walxaha cabbirka shaashad kasta.

Si aad u qariso walxaha si fudud u isticmaal .d-nonefasalka ama mid ka mid ah .d-{sm,md,lg,xl}-nonefasallada wax kasta oo kala duwanaansho shaashad ah oo ka jawaabaya.

Si aad u muujiso curiyaha kaliya ee dhexda ah ee cabbirada shaashadda waxaad ku dari kartaa hal .d-*-nonefasal iyo .d-*-*fasal, tusaale ahaan .d-none .d-md-block .d-xl-nonewaxay qarin doontaa walxaha dhammaan cabbirrada shaashadda marka laga reebo aaladaha dhexe iyo kuwa waaweyn.

Cabbirka Shaashada Fasalka
Qarsoon dhammaan .d-none
Qarsoon kaliya xs .d-none .d-sm-block
Qarsoon kaliya sm .d-sm-none .d-md-block
Qarsoon oo keliya md .d-md-none .d-lg-block
Qarsoon kaliya lg .d-lg-none .d-xl-block
Qarsoon kaliya xl .d-xl-none
Ka muuqda dhammaan .d-block
Ka muuqda xs kaliya .d-block .d-sm-none
Ka muuqda kaliya sm .d-none .d-sm-block .d-md-none
Ka muuqda oo keliya md .d-none .d-md-block .d-lg-none
Ka muuqda kaliya lg .d-none .d-lg-block .d-xl-none
Ka muuqda kaliya xl .d-none .d-xl-block
hide on screens wider than lg
ku qari shaashadaha ka yar lg
<div class="d-lg-none">hide on screens wider than lg</div>
<div class="d-none d-lg-block">hide on screens smaller than lg</div>

Bandhig daabacan

Beddel displayqiimaha walxaha marka aad ku daabacayso fasallada utility bandhiga daabacaadda. Waxaa ka mid ah taageerada displayqiyamka la midka ah ee tas- .d-*hiilaadkayaga wax ka qabta.

  • .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

Fasalada daabacaadda iyo bandhigga waa la isku dari karaa.

Shaashadda Kaliya (Ku qari daabacaadda kaliya)
Print Only (Hide on screen only)
Ku qari shaashadda ilaa weyn, laakiin had iyo jeer ku muuji daabac
<div class="d-print-none">Screen Only (Hide on print only)</div>
<div class="d-none d-print-block">Print Only (Hide on screen only)</div>
<div class="d-none d-lg-block d-print-block">Hide up to large on screen, but always show on print</div>