CSS ::backdrop Pseudo-element
- Προηγούμενη σελίδα ::after
- Επόμενη σελίδα ::before
- Επιστροφή στο επίπεδο πάνω Εγχειρίδιο Αναφορών Πseudo-elements CSS
Definition and Usage
CSS ::backdrop
Pseudo-elements are used to set the style of the view box behind dialog or popup elements.
Examples
Example 1
Set the style of the view box behind the dialog:
dialog::backdrop { background-color: lightgreen; }
Example 2
Use gradient to set the style of 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 |
Σχετικές σελίδες
Εκμάθηση:CSS ψευδο-εлемент
- Προηγούμενη σελίδα ::after
- Επόμενη σελίδα ::before
- Επιστροφή στο επίπεδο πάνω Εγχειρίδιο Αναφορών Πseudo-elements CSS