Home > Web Front-end > JS Tutorial > A CSS coverage test script implemented in 20 lines of code_javascript skills

A CSS coverage test script implemented in 20 lines of code_javascript skills

WBOY
Release: 2016-05-16 17:29:55
Original
1099 people have browsed it

Document.styleSheets stores a collection of all CSS rules on the current page. Through it, you can traverse all selectors defined in the page