使用accept属性在html中设置服务器接受的文件类型。仅在944eb666b339a963e7968776f2696d98标签中使用该属性。
示例您可以尝试运行以下代码以使用accept属性:
<!doctype html><html> <head> <title>file upload box</title> </head> <body> <form> <input type = "file" name = "fileupload" accept = "image/*" /> </form> </body></html>
以上就是设置服务器在html中接受的文件类型的详细内容。
