网页中嵌入各种文件类型
2013-03-31 13:49:30 阿炯
一、svg图片
常用的用法如下:
<embed src="realtimeuseronline.svg" type="image/svg+xml" />
使用'<object>'标签
<object data="circle1.svg" type="image/svg+xml"></object>
Embed SVG code directly into the HTML
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red"/>
</svg>
链接到svg文件
<a href="circle1.svg">View SVG file</a>
常用的用法如下:
<embed src="realtimeuseronline.svg" type="image/svg+xml" />
使用'<object>'标签
<object data="circle1.svg" type="image/svg+xml"></object>
Embed SVG code directly into the HTML
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red"/>
</svg>
链接到svg文件
<a href="circle1.svg">View SVG file</a>