in English
Ukubonakala
Lawula ukubonakala kwezinto, ngaphandle kokuguqula umboniso wazo, kunye nezixhobo zokubonakala.
Seta i visibility
-elementi kunye nezixhobo zethu zokubonakala. Ezi klasi ziluncedo aziliguquli display
xabiso kwaphela kwaye azichaphazeli uyilo – .invisible
izinto zisathatha indawo kwiphepha.
Izinto ezineklasi
.invisible
ziya kufihlwa
zombini kunye neteknoloji yokuncedisa / abasebenzisi bokufunda isikrini.
Faka isicelo .visible
okanye .invisible
njengoko kuyimfuneko.
<div class="visible">...</div>
<div class="invisible">...</div>
// Class
.visible {
visibility: visible !important;
}
.invisible {
visibility: hidden !important;
}
Sass
Utilities API
Izinto ezibonakalayo zibhengezwa kwizinto eziluncedo zethu kwi-API kwi scss/_utilities.scss
. Funda indlela yokusebenzisa izinto eziluncedo API.
"visibility": (
property: visibility,
class: null,
values: (
visible: visible,
invisible: hidden,
)
)