Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在3d画布上覆盖html?_Html_Forms_Input_Overlay_Three.js - Fatal编程技术网

如何在3d画布上覆盖html?

如何在3d画布上覆盖html?,html,forms,input,overlay,three.js,Html,Forms,Input,Overlay,Three.js,我需要在3D场景(three.js)上显示一个html表单 输入您的姓名: 它看起来很隐蔽,我能做什么?表单{position:absolute;z-index:999}formParent{position:relative}很明显,它没有绘制元素,因为这行代码:。。。renderer.setClearColor(scene.fog.color,1);。。现在表单出现了,但我无法在其中键入任何内容。您是否在画布上使用一些鼠标事件?试着对它们进行注释,并检查您是否能够键入。 <FO

我需要在3D场景(three.js)上显示一个html表单


输入您的姓名:


它看起来很隐蔽,我能做什么?

表单{position:absolute;z-index:999}formParent{position:relative}
很明显,它没有绘制元素,因为这行代码:。。。renderer.setClearColor(scene.fog.color,1);。。现在表单出现了,但我无法在其中键入任何内容。您是否在画布上使用一些鼠标事件?试着对它们进行注释,并检查您是否能够键入。
<FORM NAME="test">
<P>Enter your  Name: <INPUT TYPE="TEXT" NAME="firstName"><BR><BR>
<INPUT TYPE="Button" Value="Name" onClick="functionInput(this.form)">
</P>
</FORM>