编辑下面的代码:【加编码】
<html> <body> <form action="demo_form.php"> <input type="file" name="pic" accept="image/*"> <input type="submit"> </form> <p><strong>Note:</strong> The accept attribute of the input tag is not supported in Internet Explorer 9 and earlier versions.</p> <p><strong>Note:</strong> Because of security issues, this example will not allow you to upload files.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂