我有一个样式化的输入,我想将其包含在拖放区表单中!
<form style="border: dashed;height:300px;line-height: 190px;" action="upload.php" class="dropzone" >
</form>
<div style="position: absolute; left: 46.95%;transform: translateX(-50%);" class="col-3 input-effect">
<input name="nume" id="nume" style="color: white;" class="effect-17" type="text" placeholder="">
<label style="color:white;">Numele Resursei</label>
<span class="focus-border"></span>
</div>
我试图为表单设置一个ID并这样称呼它:
<form style="border: dashed;height:300px;line-height: 190px;" action="upload.php" class="dropzone" id="dzform">
<input form="dzform" name="nume" id="nume" style="color: white;" class="effect-17" type="text" placeholder="">
但是php文件无法使用输入字段的值!
我还尝试将输入形式:
<form style="border: dashed;height:300px;line-height: 190px;" action="upload.php" class="dropzone" >
<input name="nume" id="nume" style="color: white;" class="effect-17" type="text" placeholder="">
<label style="color:white;">Numele Resursei</label>
<span class="focus-border"></span>
</div>
</form>
并添加top: 300px
将其移动到dropzone框下,但是我在此输入上有特殊的样式,我不能这样做!