css中hack

Searching…

stackoverflow.com

Is there a CSS parent selector? - Stack Overflow

CSS is relatively fast to parse, but selecting parent tags requires a relatively significantly larger amount of processing. Using the :has selector, we can now select div elements which have a p children, or any norma...