h5上传格式设置,frameset使用方法
2017-04-08 14:11
274 查看
可以直接设置input标签的accept属性来限制上传文件的类型
1.accept=”application/msexcel”
2.accept=”application/msword”
3.accept=”application/pdf”
4.accept=”application/poscript”
5.accept=”application/rtf”
6.accept=”application/x-zip-compressed”
7.accept=”audio/basic”
8.accept=”audio/x-aiff”
9.accept=”audio/x-mpeg”
10.accept=”audio/x-pn/realaudio”
11.accept=”audio/x-waw”
12.accept=”image/gif”
13.accept=”image/jpeg”
14.accept=”image/tiff”
15.accept=”image/x-ms-bmp”
16.accept=”image/x-photo-cd”
17.accept=”image/x-png”
18.accept=”image/x-portablebitmap”
19.accept=”image/x-portable-greymap”
20.accept=”image/x-portable-pixmap”
21.accept=”image/x-rgb”
22.accept=”text/html”
23.accept=”text/plain”
24.accept=”video/quicktime”
25.accept=”video/x-mpeg2”
26.accept=”video/x-msvideo”
如果限制上传的文件为图片格式,则可以直接写成:accept = ‘image/*’;
<input type="file" accept="application/msword" ><br><br>accept属性列表<br>
1.accept=”application/msexcel”
2.accept=”application/msword”
3.accept=”application/pdf”
4.accept=”application/poscript”
5.accept=”application/rtf”
6.accept=”application/x-zip-compressed”
7.accept=”audio/basic”
8.accept=”audio/x-aiff”
9.accept=”audio/x-mpeg”
10.accept=”audio/x-pn/realaudio”
11.accept=”audio/x-waw”
12.accept=”image/gif”
13.accept=”image/jpeg”
14.accept=”image/tiff”
15.accept=”image/x-ms-bmp”
16.accept=”image/x-photo-cd”
17.accept=”image/x-png”
18.accept=”image/x-portablebitmap”
19.accept=”image/x-portable-greymap”
20.accept=”image/x-portable-pixmap”
21.accept=”image/x-rgb”
22.accept=”text/html”
23.accept=”text/plain”
24.accept=”video/quicktime”
25.accept=”video/x-mpeg2”
26.accept=”video/x-msvideo”
如果限制上传的文件为图片格式,则可以直接写成:accept = ‘image/*’;
frameset 使用方法 <frameset rows="76,*" framespacing="0" border="0"> <frame src="top.html" id="header-frame" name="header-frame" frameborder="no" scrolling="no"> <frameset cols="180,*" framespacing="0" border="0" id="frame-body"> <frame src="menu.html" id="menu-frame" name="menu-frame" frameborder="no"> <frame src="main.html" id="main-frame" name="main-frame" frameborder="no"> </frameset> </frameset>
相关文章推荐
- NSMutableAttributedString 的使用方法,设置格式
- NSMutableAttributedString 的使用方法,设置格式
- NSMutableAttributedString 的使用方法,设置格式
- NSMutableAttributedString 的使用方法,设置格式
- cpp: ostream setf() 设置格式状态方法的初使用
- Iterator<FileItem>的使用,实现文件(图片)上传,限制图片格式,设置随机文件名
- 使用log_format为Nginx服务器设置更详细的日志格式方法
- 解密FCKeditor 2.0 的设置.修改.使用方法
- WinRar 使用方法参数设置
- FCKeditor的常用配置方法和无法使用上传功能的解决!
- GridView日期格式模版列使用方法
- 使用C#和Excel进行报表开发(七)-设置单元格的显示格式
- 邮件系统使用的上传附件方法
- ASP 在Windows 2003 server使用纯代码上传大文件遇到的错误,及解决方法
- 如何:使用调试器变量窗口,可以将调试器窗口中用于显示数值的格式设置为十进制或十六进制
- ASP.NET设置数据格式与String.Format使用总结
- ASP.NET设置数据格式与String.Format使用总结
- ASP.NET设置数据格式与String.Format使用总结
- DataGrid中数据格式设置表达式的使用
- 使用C#和Excel进行报表开发(七)-设置单元格的显示格式