Меню
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON PHP КАК СДЕЛАТЬ
     ❯   

CSS Справочники


CSS Свойства





text-decoration-thickness



Example

Set different thickness of the decoration line for <h1>, <h2>, <b>, and <h4> elements:

h1 {
  text-decoration: underline;
  text-decoration-thickness: auto;
}

h2 {
  text-decoration: underline;
  text-decoration-thickness: 5px;
}

b {
  text-decoration: underline;
  text-decoration-thickness: 50%;
}

/* Use shorthand property */
h4 {
  text-decoration: underline solid red 50%;
}
Try it Yourself »

Definition text-decoration-thickness

Подработка: Перевод страницы

The text-decoration-thickness property specifies the thickness of the decoration line.

Default value: auto
Inherited: no
Animatable: no, see individual properties. Read about animatable
Version: CSS4
JavaScript syntax: object.style.textDecorationThickness="5px" Try it

Browser Support text-decoration-thickness

The numbers in the table specify the first browser version that fully supports the property.

Property
text-decoration-thickness 89.0 89.0 70.0 12.1 75.0


CSS Syntax text-decoration-thickness

text-decoration-thickness: auto|from-font|length/percentage|initial|inherit;

Property Values text-decoration-thickness

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

Related Pages text-decoration-thickness

CSS reference: text-decoration property

CSS tutorial: CSS Text Decoration



×

Связаться с отделом продаж

Если вы хотите использовать услуги schoolsw3 как образовательное учреждение, команда или предприятие, отправьте нам электронное письмо:
sales@schoolsw3.com

Сообщить об ошибке

Если вы хотите сообщить об ошибке или внести предложение, отправьте нам электронное письмо:
help@schoolsw3.com

Schoolsw3 оптимизирован для обучения и подготовки. Примеры могут быть упрощены для улучшения чтения и обучения. Учебники, ссылки и примеры постоянно проверяются, чтобы избежать ошибок, но мы не можем гарантировать полную правильность всего контента.
При использовании Schoolsw3 вы соглашаетесь прочитать и принять наши условия использования,
политику использования файлов cookie и конфиденциальности.

Авторское право 1999- © Copyright. Все права защищены. Schoolsw3 работает на SW3.CSS.