Home > Web Front-end > CSS Tutorial > CSS needs a name prefix selector

CSS needs a name prefix selector

WBOY
Release: 2024-08-27 18:00:36
Original
439 people have browsed it

CSS needs a name prefix selector

I love working with custom elements for all kinds of things, but sometimes I just want to hide stuff until it is loaded or do something else with it in CSS.

A simple solution looks like this:

framework-button:not(:defined) {
   display: none
}
Copy after login

Put that in a