
更像这样:
<form action="#" method="POST"> <fIEldset ID="input1-wrapper"> <h3>input 1</h3> <input type="texte" name="input1" placeholder="input1"> </fIEldset> <fIEldset ID="input2-wrapper"> <h3>input 2</h3> <input type="texte" name="input2" placeholder="input2"> </fIEldset> </form>
或者像这样:
<form action="#" method="POST"> <div ID="input1-wrapper"> <h3>input 1</h3> <input type="texte" name="input1" placeholder="input1"> </div> <div ID="input2-wrapper"> <h3>input 2</h3> <input type="texte" name="input2" placeholder="input2"> </div> </form>解决方法 允许表单中的多个字段集.示例:一个字段集和 *** 作按钮中的数据输入字段(“提交”,“取消”等)在单独的字段集中.
FIEldset应始终根据标准具有图例标记.
实际上,FIEldsets只是另一个“显示”块级元素.即把它想象成一个“花哨的div”.它可以在“块级元素”的任何地方使用.它没有内在的“特殊知识”.由于’legend’是一个单独的元素,因此可以使用CSS单独设置样式.
迂腐; – /
www.whatwg.org/specs/web-apps/current-work/multipage/forms
提取的文本:’…,可以使用fIEldset元素.这组控件的标题由fIEldset中的第一个元素给出,它必须是一个图例元素.
在我看来,带有标题的’div’看起来好多了.至于我在表单之外使用它来分组事物.尝试使用CSS在边框中获取该文本.
<form action="#" method="POST"> <fIEldset ID="input1-wrapper"> <legend>input 1</legend> <input type="text" name="input1" placeholder="input1"> </fIEldset> <fIEldset ID="input2-wrapper"> <legend>input 2</legend> <input type="text" name="input2" placeholder="input2"> </fIEldset> </form>总结
以上是内存溢出为你收集整理的forms – 表单标记中的多个fieldset全部内容,希望文章能够帮你解决forms – 表单标记中的多个fieldset所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)