HTML <object> type 属性
type 属性用于设置对象的 MIME 类型
语法
<object type="MIME_type">
属性值
值 | 描述 |
---|---|
MIME_type | 被嵌入内容的 MIME 类型 可以访问 IANA MIME 类型 获得标准 MIME 类型的完整列表 |
浏览器支持
所有主流浏览器都支持 type 属性
范例
拥有指定的 MIME 类型的 <object> 元素
<object width="400" height="400" data="/static/media/html/helloworld.swf" type="application/x-shockwave-flash"></object>