Χαρακτηριστικό all CSS
- Προηγούμενη σελίδα align-self
- Επόμενη σελίδα animation
Definition and usage
all
All properties except unicode-bidi and direction are reset to their initial value or inherited value.
Example
All properties of the element or the parent element are changed to their initial value:
div { background-color: yellow; color: red; all: initial; }
CSS syntax
all: initial|inherit|unset;
Attribute value
Value | Description |
---|---|
initial | Set this property to its default value. See initial. |
inherit | Inherit this property from its parent element. See inherit. |
unset | If inheritable, all properties of the element or the parent element are changed to their parent value, otherwise they are changed to the initial value. |
Technical details
Default value: | none |
---|---|
Inheritance: | No |
Animation creation: | Not supported. See:Animation-related properties. |
Version: | CSS3 |
JavaScript syntax: | object.style.all="initial" |
Browser support
The numbers in the table indicate the first browser version that fully supports this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | IE / Edge | Firefox | Safari | Opera |
37.0 | 79.0 | 27.0 | 9.1 | 24.0 |
- Προηγούμενη σελίδα align-self
- Επόμενη σελίδα animation