负z指数是否会影响性能或兼容性? [英] Does negative z-index affect performance or compatibility?

查看:167
本文介绍了负z指数是否会影响性能或兼容性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网络应用程序,我需要在后台显示一个3D模型,使用webGl,然后在其上显示不同的东西。

I have a web application where I need to show a 3D model using webGl in the background then showing different stuff on top of it.

,除非在 chrome 中,我需要为CSS中的z-index规则赋予负值。

All is working VERY fine in firefox except in chrome where I need to give the canvas a negative value for the z-index rule in CSS.

所以我会说我需要两件事之一:

So I would say I need one of two things:


  • 如果我修复这个问题, ,这将对我在任何浏览器中的应用程序造成任何损害(在桌面和移动设备上)

  • 任何人都猜测为什么它不能在 Chrome (可能来自以前的经验)

  • If I fix this issue giving a negative z-index to the canvas, will this cause any harm on to my application in any of the browsers (in both desktop and mobile)
  • Could anybody guess why its not working in Chrome (perhaps from a previous experince)

推荐答案

我第二次问过这个问题,我得到了答案,详情请参阅: http:// stackoverflow.com/a/19830934/1358670

I've asked the question differently a second time and I got my answer, for more details check out here: http://stackoverflow.com/a/19830934/1358670

这篇关于负z指数是否会影响性能或兼容性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆