Source

Pom kev

Tswj lub visibility, tsis hloov cov zaub, ntawm cov khoom nrog visibility utilities.

Teeb cov visibilityntsiab lus nrog peb cov khoom siv pom kev pom. Cov chav kawm siv hluav taws xob no tsis hloov pauv tus displaynqi ntawm txhua qhov thiab tsis cuam tshuam rau kev teeb tsa - .invisiblecov ntsiab lus tseem siv qhov chaw hauv nplooj ntawv. Cov ntsiab lus yuav muab zais ob qho tib si pom thiab rau cov cuab yeej pabcuam / cov neeg siv tshuaj ntsuam nyeem ntawv.

Thov .visiblelos yog .invisibleraws li xav tau.

<div class="visible">...</div>
<div class="invisible">...</div>
// Class
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}

// Usage as a mixin
.element {
  @include invisible(visible);
}
.element {
  @include invisible(hidden);
}