我有以下html:
<body>
<input id="slider" type="range" min="0" max="100" step="1"></input>
<div id="backward" class="button"></div>
<canvas id="canvas" width="800" height="500" style="border: 1px solid;"></canvas>
<div id="forward" class="button"></div>
</body>
以及以下css:
#canvas{
position: absolute;
left: 0px;
top: 0px;
z-index: 50;
}
.button{
position: absolute;
top: 10px;
z-index: 100;
}
我需要将其他css放在canvas元素左边的后面div和canvas元素右边的前面div中吗?