ADOBE说SVG plugin不支持打印,可我却发现用IE可以打印:)
方法是:在IE中进入“打印预览”,能看见就可以打印了。你知道为什么IE能打印SVG ? 

解决方案 »

  1.   

    这样肯定不行啦!应该是多次定义了函数。
    其实你可以把svg中的call_out()放在html啊!就是下面这样:
    -------------------主页面----------------------<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>test svg</title>
    </head><script language="JavaScript" type="text/JavaScript"> function call_out(id)
    {
    alert("called from svg=" + id);
    }

    </script><body>
    <embed src="a.svg" width="400" height="20" align="top" name="svg_1" type="image/svg+xml" /><input name="ok" type="button" value="callSVG" onclick="call_in(1111);">
    </body>
    </html>-------------------a.svg----------------------<?xml version="1.0" encoding="UTF-8"?><svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 20" height="20" width="400" id="body">
    <rect x="300" y="0" width="25%" height="100%" style="fill:rgb(255,0,0);stroke:rgb(0,0,0);stroke-width:1" onclick="call_out(111);"/></svg>
      

  2.   

    IE能打印SVG ,我觉得主要是因为ie把它当成普通的embed对象了啊!