更新时间:2023-02-05 21:37:11
实际上改变你的样式表是相当具有挑战性的。更容易,但您可以切换不同的样式表,这可能已经足够您的目的。请参见如何使用jQuery切换CSS样式表?。
Actually altering your stylesheet is pretty challenging. Much more easily, though, you can switch out your stylesheet for a different one, which may be sufficient for your purposes. See How do I switch my CSS stylesheet using jQuery?.
要实际更改样式表内容,请如何在运行时更改/删除CSS类定义?将让你开始。
For actually altering the stylesheet content, How to change/remove CSS classes definitions at runtime? will get you started.