$(function(){
//jquery多样式设置
$("#app").css({
"width":"300px",
"height":"300px",
"background-color":"red",
"border":"5px solid green"
})
//jquery单样式设置
$("#singlestyle").css("background-color","green")
$("#singlestyle").css("width",300)
$("#singlestyle").css("height","300px")
})
网友评论