自定义输入VR按钮在A型框架中不起作用

时间:2019-04-10 23:08:25

标签: aframe

我正在尝试实现一个自定义输入VR按钮,如此处所述:https://aframe.io/docs/0.9.0/components/vr-mode-ui.html

我无法正常工作。该按钮完全无法显示。这是显示问题的jsfiddle:https://jsfiddle.net/r0wtq3xb/

我想念什么吗?文档页面说“用图像或其他样式设置按钮样式”。我尝试了以下操作,但没有任何效果(该按钮完全没有显示):

<a id="myEnterVRButton" href="#">
<div style="height: 100px;width:100px;background-color:red;"></div>
</a>

<a id="myEnterVRButton" href="#">
<img src="sprite.png" style="width:42px;height:42px;border:0;background-color:red;">
</a>

感谢您的帮助!谢谢。

1 个答案:

答案 0 :(得分:0)

尝试z-index: 999999position: fixed

相关问题