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

CSS needs a name prefix selector

WBOY
WBOYOriginal
2024-08-27 18:00:36408browse

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
}

Put that in a