windows - -webkit-backface-visibility 在 Windows 上的 node-webkit 中不起作用

标签 windows node.js css css-transforms node-webkit

我正在使用 node-webkit构建一个独立的网络应用程序演示,由于某种原因,-webkit-backface-visibility CSS3 属性不起作用——但只有当我在 Windows 上运行该应用程序时,而不是在 Mac 上。

当我说它不起作用时,我的意思是它就像不支持该属性一样:当我将一个元素翻转过来时,我看到它是反转的,而不是隐藏的。

问题不仅仅出在我的特定代码上,因为 -webkit-backface-visibility(如 this one)的在线演示在我在应用程序中运行时不起作用在 Windows 上:

enter image description here

这是 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 and d3dx9_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/

相关文章:

html - 响应式 - 将图标和文本对齐到菜单项的中心

javascript - UWP:无法访问许可证信息

python - CloudKit JS 通过 Node : Cannot register for notifications

javascript - Html 页面中选定的 div 突出显示

node.js - Ghost帖子按标签名称过滤

node.js - componentDidMount 未触发

css - magento 时事通讯 css 放置在主页

windows - 如何关闭 Windows 机器上的套接字?

windows - 在 Windows "#error "上构建 boost 时出错 Not ARM ""& "错误 : No best alternative for"

windows - 在远程桌面上使用 Powershell 获取 Windows DisplayLanguage