Code code
$(" site - doc - icon. Li layui - anim "). Each (function () {
This. Style. SetProperty (" background - color ", "# FFFF00", "important");
})
The background color of the above can't modify the corresponding this
Only each loop was over all this changes the background color in
How to do revise style every cycle, inquire
CodePudding user response:
The middle switch to
This. Style. BackgroundColor='# FFFF00'
Also not line
CodePudding user response:
$(" site - doc - icon. Li layui - anim "). Each (function () {
$(this). The CSS ({" background - the color ", "# FFFF00! important;" });
})
CodePudding user response:
Can not be real-time is what meaning, how long will it take to get the cycle you finish?
CodePudding user response:
The