jquery的css()函数同时设置多个css属性值

$("p").css({ "color": "#ff0011", "background": "blue" });

参考来源:https://jquery.cuishifeng.cn/css.html

posted @ 2020-09-02 18:05  小猿笔记  阅读(1910)  评论(0编辑  收藏  举报