Source

Ukutshintshwa komfanekiso

Tshintsha okubhaliweyo kwimifanekiso yangasemva ngeklasi yokutshintsha umfanekiso.

Isilumkiso

Iklasi text-hide()kunye ne-mixin iye yarhoxiswa njenge-v4.1. Iza kususwa ngokupheleleyo kwi-v5.

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.1/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>