jquery css

2022-07-04  本文已影响0人  程序猿的小生活
$(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")
})
上一篇 下一篇

猜你喜欢

热点阅读