Source

Rasmni almashtirish

Tasvirni almashtirish klassi yordamida matnni fon rasmlariga almashtiring.

Ogohlantirish

Sinf text-hide()va mixin 4.1 versiyasidan boshlab eskirgan. v5 da butunlay olib tashlanadi.

.text-hideElement matn mazmunini fon tasviri bilan almashtirishga yordam berish uchun sinf yoki miksindan foydalaning.

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

.text-hideSarlavha teglarining mavjudligi va SEO afzalliklarini saqlab qolish uchun sinfdan foydalaning, lekin matn background-imageo'rniga a dan foydalanishni xohlaysiz.

Bootstrap

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