in English
Pom kev
Tswj lub visibility ntawm cov ntsiab lus, yam tsis tau hloov kho lawv cov zaub, nrog rau cov khoom siv visibility.
Teeb cov visibility
ntsiab lus nrog peb cov khoom siv pom kev pom. Cov chav kawm siv hluav taws xob no tsis hloov pauv tus display
nqi ntawm txhua qhov thiab tsis cuam tshuam rau kev teeb tsa - .invisible
cov ntsiab lus tseem siv qhov chaw hauv nplooj ntawv.
Cov ntsiab lus nrog cov
.invisible
chav kawm yuav muab zais
ob qho tib si pom thiab rau cov neeg siv thev naus laus zis / tshuaj ntsuam nyeem ntawv.
Thov .visible
los yog .invisible
raws li xav tau.
<div class="visible">...</div>
<div class="invisible">...</div>
// Class
.visible {
visibility: visible !important;
}
.invisible {
visibility: hidden !important;
}
Sass
Utilities API
Kev pom kev siv hluav taws xob tau tshaj tawm hauv peb cov khoom siv hluav taws xob API hauv scss/_utilities.scss
. Kawm paub siv cov khoom siv hluav taws xob API li cas.
"visibility": (
property: visibility,
class: null,
values: (
visible: visible,
invisible: hidden,
)
)