Canvas 如何在画布下放置div
我有一些HTML5代码包含画布,我不能在画布下放置div,下面是部分代码:Canvas 如何在画布下放置div,canvas,html5-canvas,Canvas,Html5 Canvas,我有一些HTML5代码包含画布,我不能在画布下放置div,下面是部分代码: <div style="position: relative;"> <div id="animation_container" style="position: absolute; background-color:rgba(255, 255, 255, 1.00); width:2000px; height:1520px; z-index: 3"> <canvas id=
<div style="position: relative;">
<div id="animation_container" style="position: absolute; background-color:rgba(255, 255, 255, 1.00); width:2000px; height:1520px; z-index: 3">
<canvas id="canvas" width="2000" height="1520" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
</div>
</div>
<div style= " z-index: 3">
<h1>Test</h1>
</div>
试验
答案是删除第一个div上的style=“position:relative;”