Source

Ukutshintshwa komfanekiso

Tshintsha okubhaliweyo kwimifanekiso yangasemva ngeklasi yokutshintsha umfanekiso.

Sebenzisa .text-hideiklasi okanye i-mixin ukunceda ukubuyisela umxholo wesicatshulwa ngomfanekiso ongasemva.

<h1 class="text-hide">Custom heading</h1>
// Usage as a mixin
.heading {
  @include text-hide;
}

Sebenzisa .text-hideiklasi ukugcina ukufikeleleka kunye neenzuzo ze-SEO zeethegi zesihloko, kodwa ufuna ukusebenzisa u-a background-imageendaweni yesicatshulwa.

I-Bootstrap

<h1 class="text-hide" style="background-image: url('/docs/4.0/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>