Source

Ranplasman imaj

Boukante tèks pou imaj background ak klas ranplasman imaj la.

Avètisman

Klas text-hide()la ak mixin te obsolète apati v4.1. Li pral retire antyèman nan v5.

Sèvi ak .text-hideklas la oswa melanje pou ede ranplase kontni tèks yon eleman ak yon imaj background.

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

Sèvi ak .text-hideklas la pou kenbe aksè ak avantaj SEO nan tit tags, men ou vle itilize yon background-imagetèks olye de tèks.

Bootstrap

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