HTML forma del botón de la propiedad
Ejemplos
Situado fuera del botón formulario de envío (pero todavía forma parte de):
<form action="demo-form.php" method="get" id="nameform">
First name: <input type="text" name="fname" /><br>
Last name: <input type="text" name="lname" /><br>
</form>
<p>下面的按钮是在表单元素外,但仍是表单的一部分。</p>
<button type="submit" form="nameform" value="提交">提交</button>
First name: <input type="text" name="fname" /><br>
Last name: <input type="text" name="lname" /><br>
</form>
<p>下面的按钮是在表单元素外,但仍是表单的一部分。</p>
<button type="submit" form="nameform" value="提交">提交</button>
Trate »
Soporte para el navegador
Además del navegador Internet Explorer, los otros navegadores principales apoyan propiedad de formulario.
Definición y Uso
representación de atributo especifica botones pertenecen a una o más formas.
Diferencias entre HTML 4.01 y HTML5
HTML5 representación de atributo es la nueva propiedad.
gramática
<button form=" form_id ">
propiedad Valor
valor | descripción |
---|---|
form_id | Identificación del botón pertenece al formulario. Para citar más de una forma, usar una lista separada por espacios. |
etiqueta <botón> HTML