我有一些包含画布的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="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>
答案 0 :(得分:0)
答案是删除style =“ position:relative;”在第一分区。