CSS metin-dekorasyon-kalınlık Özellik
Örnek
<h1>, <h2>, <h3> ve <h4> öğeleri için dekorasyon çizgisinin farklı kalınlığını ayarlayın:
h1 {
text-decoration: underline;
text-decoration-thickness: auto;
}
h2 {
text-decoration: underline;
text-decoration-thickness: 5px;
}
h3 {
text-decoration: underline;
text-decoration-thickness: 50%;
}
/* Use shorthand property */
h4 {
text-decoration:
underline solid red 50%;
}
Tanım ve Kullanım
Özellik text-decoration-thickness
, dekorasyon çizgisinin kalınlığını belirtir.
Varsayılan değer: | Oto |
---|---|
Miras: | Hayır |
canlandırılabilir: | hayır, bireysel özelliklere bakın . Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS4 |
JavaScript sözdizimi: | nesne .style.textDecorationThickness="5px" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
text-decoration-thickness | 89.0 | 89.0 | 70.0 | 12.1 | 75.0 |
CSS Sözdizimi
text-decoration-thickness:
auto|from-font|length/percentage|initial|inherit;
Mülk değerleri
Value | Description |
---|---|
auto | The browser chooses the thickness of the decoration line |
from-font | If a font file contains information about a preferred thickness, use that value. If not, behave as auto |
length/percentage | Specifies the thickness as a length or % |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
İlgili Sayfalar
CSS referansı: metin-dekorasyon özelliği
CSS eğitimi: CSS Metin Dekorasyonu