我正在使用 node-webkit构建一个独立的网络应用程序演示,由于某种原因,-webkit-backface-visibility
CSS3 属性不起作用——但只有当我在 Windows 上运行该应用程序时,而不是在 Mac 上。
当我说它不起作用时,我的意思是它就像不支持该属性一样:当我将一个元素翻转过来时,我看到它是反转的,而不是隐藏的。
问题不仅仅出在我的特定代码上,因为 -webkit-backface-visibility
(如 this one)的在线演示在我在应用程序中运行时不起作用在 Windows 上:
这是 node-webkit 中的错误吗?有什么方法可以让它发挥作用吗?
最佳答案
嗯,这听起来像是一个错误。这可能是导致 WebGL 不适用于 Windows 上特定硬件/驱动程序组合的同一问题:
https://github.com/rogerwang/node-webkit/wiki/Webgl-support-on-windows
On Windows with some hardware and driver, WebGL won't work until you copy
D3DCompiler_43.dll
andd3dx9_43.dll
to node-webkit's directory, or install DirectX 9 redistributable.For license reasons we cannot ship those DLLs.
这似乎解决了此处报告的 backface-visibility
的类似问题:
CSS: backface-visibility and perspective doesn't work
It WORKS! Thanks a lot! I've added two dll files two node-webkit package and it works!
关于windows - -webkit-backface-visibility 在 Windows 上的 node-webkit 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17535747/