Source

Ukushintshwa kwesithombe

Shintshanisa umbhalo ukuze uthole izithombe zangemuva nekilasi lokumiselela isithombe.

Sebenzisa .text-hideikilasi noma i-mixin ukuze usize esikhundleni sokuqukethwe kombhalo we-elementi ngesithombe sangemuva.

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

Sebenzisa .text-hideikilasi ukuze ugcine ukufinyeleleka kanye nezinzuzo ze-SEO zamathegi esihloko, kodwa ufuna ukusebenzisa u-a background-imageesikhundleni sombhalo.

I-Bootstrap

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