Jquery Change CSS Background Color

后端 未结 1 848
你的背包
你的背包 2021-01-29 05:52

I have an element with the id \'center-layout\' - within this is an

  • that has no id or class assigned.

    It does have background-c

  • 1条回答
    •  [愿得一人]
      2021-01-29 06:47

      By using:

      $('#center-layout li').css("background-color", "newcolor");
      

      0 讨论(0)
    提交回复
    热议问题