js写css()方法,记得加引号“ ”,除非是数字。如:
$("#android").css({ "position": "absolute", "z-index": 3, "background": "rgba(90,100,100,0.5)" }
时间: 2024-10-25 08:47:59
js写css()方法,记得加引号“ ”,除非是数字。如:
$("#android").css({ "position": "absolute", "z-index": 3, "background": "rgba(90,100,100,0.5)" }