HTML button name 属性
两个按钮带有相同的名称,在单击它们时提交不同的值: 实例 Run this code » <form action="demo_form.html" method="get"> Choose your favorite su...
两个按钮带有相同的名称,在单击它们时提交不同的值: 实例 Run this code » <form action="demo_form.html" method="get"> Choose your favorite su...
两个提交按钮,第一个提交按钮使用默认 target ("_self") 提交数据,第二个提交按钮将数据提交到到新窗口(target="_blank"): 实例 Run this code » <form action="demo_fo...
带有两个提交按钮的表单(进行验证或不进行验证),第一个提交按钮提交数据时带有默认的表单验证,第二个提交按钮提交数据时不进行表单验证: 实例 Run this code » <form action="demo_form.html" m...
带有两个提交按钮的表单,第一个提交按钮使用 method="get" 提交表单数据,第二个提交按钮使用 method="post" 提交表单数据: 实例 Run this code » <form action="demo_form....
带有两个提交按钮的表单(带有不同的编码方式),第一个提交按钮使用默认字符编码提交表单数据,第二个提交按钮不使用字符编码提交表单数据: 实例 Run this code » <form action="demo_post_enctype...
带有两个提交按钮的表单(带有不同的 action),第一个提交按钮将表单数据提交到 "demo_form.html", 第二个提交按钮将表单数据提交到 "demo_admin.html": 实例 Run this code » <fo...
实例 Run this code » 位于表单之外的提交按钮(但是仍然是表单中的一部分): <form action="demo-form.php" method="get" id="nameform"> First name:...
实例 Run this code » 禁用一个按钮: <button type="button" disabled>点我!</button> 浏览器支持 所有主流浏览器都支持 disabled 属性 定义和用法 di...
实例 Run this code » 按钮使用 autofocus 属性: <button type="button" autofocus>点我!</button> 浏览器支持 Internet Explorer 1...
以下代码标记一个换行: 浏览器支持 所有主流浏览器都支持 <br> 标签。 标签定义及使用说明 <br> 标签插入一个简单的换行符。 <br> 标签是一个空标签,意味着它没有结束标签。 提示和注释 提示:...