Home > Article > Web Front-end > How jquery determines whether an element has a specified style_jquery
Divided into the following two situations:
1. If the css is written as an inline style, it can be judged by getting the value of the style attribute. The example is as follows:
Judge whether the div element with the ID divid has a font-size style: