我正在使用 jQuery 选择一些元素并像这样应用 CSS...$(".items div").not(".active").css({"color":"green","background":"red","z-index:":"-9"});<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><div class="items"> <div>Item 1</div> <div class="active">Item 2</div> <div>Item 3</div> <div>Item 4</div> <div>Item 5</div></div>Thebackground和 the colorboth 工作,但z-index没有被应用。我哪里错了?
添加回答
举报
0/150
提交
取消