in English

Ukushintshwa kwesithombe

Shintshanisa umbhalo ukuze uthole izithombe zangemuva nekilasi lokumiselela isithombe.

Isexwayiso

Ikilasi text-hide()ne-mixin kuhoxisiwe kusukela ku-v4.1. Izosuswa ngokuphelele ku-v5.

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('...');">Bootstrap</h1>