可以同一个区域使用多个canvas通过z-index控制吗? 10
像下面这样子,最底层的canvas绘制背景,其他的canvas绘制一些部件,可以正常显示吗?<canvasid="bg_canvas"width="1050"height...
像下面这样子,最底层的canvas绘制背景,其他的canvas绘制一些部件,可以正常显示吗?
<canvas id="bg_canvas" width="1050" height="750" style="position:absolute; z-index:-1; "></canvas>
<canvas id="grid_canvas" width="1050" height="750" style="position:absolute; z-index:0; "></canvas>
<canvas id="road_canvas" width="1050" height="750" style="position:absolute; z-index:1; "></canvas>
<canvas id="part_canvas" width="1050" height="750" style="position:absolute; z-index:1; "></canvas> 展开
<canvas id="bg_canvas" width="1050" height="750" style="position:absolute; z-index:-1; "></canvas>
<canvas id="grid_canvas" width="1050" height="750" style="position:absolute; z-index:0; "></canvas>
<canvas id="road_canvas" width="1050" height="750" style="position:absolute; z-index:1; "></canvas>
<canvas id="part_canvas" width="1050" height="750" style="position:absolute; z-index:1; "></canvas> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)+提问者悬赏10(财富值+成长值)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询