如何 - 文件上传按钮
了解如何使用 HTML 创建文件上传按钮。
点击“选择文件”按钮上传文件
文件上传
示例
<form action="/action_page.php">
<input type="file" id="myFile" name="filename">
<input type="submit">
</form>
自己动手试一试 »
了解如何使用 HTML 创建文件上传按钮。
点击“选择文件”按钮上传文件
<form action="/action_page.php">
<input type="file" id="myFile" name="filename">
<input type="submit">
</form>
自己动手试一试 »
如果您想将 W3Schools 服务用于教育机构、团队或企业,请发送电子邮件给我们
sales@w3schools.com
如果您想报告错误,或想提出建议,请发送电子邮件给我们
help@w3schools.com