$("#sanjiaoLeft").css("marginLeft",val);
$("#sanjiaoLeft").css({"margin-left": val, "background-color": "blue" });
$("#sanjiaoLeft").css({"margin-left": val, "background-color": "blue" });
本文介绍了使用jQuery进行CSS样式设置的方法,包括如何设置元素的左边距和背景颜色等属性。通过具体的代码实例展示了如何对ID为'sanjiaoLeft'的元素进行样式修改。
685
1万+
1748

被折叠的 条评论
为什么被折叠?