Source

Hihan

Ṣakoso hihan, laisi iyipada ifihan, ti awọn eroja pẹlu awọn ohun elo hihan.

Ṣeto awọn visibilityeroja pẹlu awọn ohun elo hihan wa. Awọn kilasi IwUlO wọnyi ko ṣe atunṣe displayiye rara ati pe ko ni ipa lori ifilelẹ – .invisibleawọn eroja ṣi gba aaye ni oju-iwe naa. Akoonu yoo farapamọ ni oju mejeeji ati fun imọ-ẹrọ iranlọwọ / awọn olumulo oluka iboju.

Waye .visibletabi .invisiblebi o ṣe nilo.

<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);
}