cheerio/css

Methods

# (static) css(prop, valopt) → {Cheerio}

Get the value of a style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

Parameters:
Name Type Attributes Description
prop string | object

The name of the property.

val string <optional>

If specified the new value.

Returns:

The instance itself.

Type
Cheerio