<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>无标题页</title> </head> <body> <form id="form1" runat="server"> <div> <p> This shows a simple html document with an svg document included by reference. </p> <embed src="test.svg" width="100%" height="100%" align="center"></embed> </div> </form> </body> </html> 二、使用对象元素 <object type="image/svg + xml" data="test.svg" width="300" height="200" align="top"></object>在引用SVG只有两件事会出错: 1.SVG文件本身无效哦奥,或没有正确的命名这个文件, 2.url=" ";引用不到文件。 产生的错误是客户端的无反馈信息,漫长的等待。
转载于:https://www.cnblogs.com/goodyao/archive/2008/03/16/1108871.html
相关资源:基于SVG的Web煤矿地图应用