是否可以像这样将 iframe
放入 form
中?
我尝试了以下方法,但不起作用:
<form action = "etc">
<iframe>
<input type="text" name="text1">Input<br>
<input type="text" name="text1">Input<br>
<input type="text" name="text1">Input<br>
<input type="text" name="text1">Input<br>
</iframe>
<input type="submit">
</form>
但我怀疑这不是正确的方法。有什么指点吗?
最佳答案
根据您的评论,您想要一个带有滚动的元素,请尝试如下:
HTML:
<fieldset id="lotsOfInputs">
<input type="text" name="text1">Input<br>
<input type="text" name="text1">Input<br>
<input type="text" name="text1">Input<br>
<input type="text" name="text1">Input<br>
</fieldset>
CSS:
#lotsOfInputs {
max-height: 200px;
with: 100%;
overflow: scroll;
}
关于html - 在 <form> 中使用 iframe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30941283/