这是如何工作的:
$("#linechart").css({
position:'fixed',
top: "4%",
left: "2%",
height: "92%",
width: "96%"
});
这会破坏所有的 javascript:
$("#linechart").css({
position:'fixed',
top: "4%",
left: "2%",
height: "92%",
width: "96%",
z-index: "5"
});
最佳答案
你必须这样定义:
"z-index": "5"
如果您不想在引号中定义,则为大写:
zIndex: "5"
关于javascript - Z-index 不适用于 jquery css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16356318/