CSS all Свойство
Пример
Измените все свойства, примененные к элементу или родительскому элементу, в исходное значение:
div
{
background-color: yellow;
color: red;
all: initial;
}
Определение и использование
Свойство all
сбрасывает все свойства, кроме Unicode-двунаправленного письма и направления, в исходное или унаследованное значение.
Значение по умолчанию: | Нет |
---|---|
Inherited: | no |
Animatable: | no. Читайте о animatable |
Version: | CSS3 |
Синтаксис JavaScript: | object.style.all="initial" |
Поддержка браузера
Номера в таблице указывают первую версию браузера, которая полностью поддерживает свойство.
Свойство | |||||
---|---|---|---|---|---|
all | 37.0 | Не поддерживается | 27.0 | 9.1 | 24.0 |
Синтаксис CSS
all: initial|inherit|unset;
Значения свойств
Значение | Описание |
---|---|
initial | Изменяет все свойства, примененные к элементу или родительскому элементу, в исходное значение |
inherit | Изменяет все свойства, примененные к элементу или родительскому элементу, к их родительскому значению |
unset | Изменяет все свойства, примененные к элементу или родительскому элементу, к родительскому значению, если они являются наследуемыми или их начальное значение, если не |