使用 css()
方法为 <p> 设置如下样式:
Green background color, white text color, 25 pixels font size and a padding of 15 pixels.
$("p").@(3)({
"@(16)": "@(5)",
"@(5)": "@(5)",
"@(9)": "@(4)",
"@(7)": "@(4)"
});
$("p").css({
"background-color": "green",
"color": "white",
"font-size": "25px",
"padding": "15px"
});