CSS ::backdrop Pseudo-element
- Ilang Naunang Pahina ::after
- Ilang Susunod na Pahina ::before
- Bumalik sa Isang Lebel Manwal ng Pseudo-element ng CSS
Definition and Usage
CSS ::backdrop
Pseudo-elements are used to set the style of the view box behind the dialog or popup elements.
Example
Example 1
Style the view box behind the dialog:
dialog::backdrop { background-color: lightgreen; }
Example 2
Use gradient settings to style the view box behind the dialog:
dialog::backdrop { background-color: #1fc8db; /* For browsers that do not support gradients */ background-image: linear-gradient(140deg, #EADEDB 0%, #BC70A4 50%, #BFD641 75%); opacity:0.75; }
CSS Syntax
::backdrop { css declarations; }
Technical Details
Version: | CSS Positioned Layout Module Level 4 |
---|
Browser Support
The numbers in the table specify the first browser version that fully supports this pseudo-element.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
37 | 79 | 47 | 15.4 | 24 |
Mga Kaugnay na Pahina
Tuturo:CSS Pseudo-element
- Ilang Naunang Pahina ::after
- Ilang Susunod na Pahina ::before
- Bumalik sa Isang Lebel Manwal ng Pseudo-element ng CSS