test2.svg

来自「java开源的企业总线.xmlBlaster」· SVG 代码 · 共 28 行

SVG
28
字号
<svg width='200' height='100'>   <script><![CDATA[      /*      NOTE:      Mozilla 0.91 with Adobe SVG plugin does support:      ->  Accessing the embeded SVG from outer HTML with          document.embeds["mySVG"].getSVGDocument()          OK: xpconnect wrapped HTMLEmbedElement      Mozilla 0.* with Adobe SVG plugin do NOT support:      ->  Exporting the svgdoc handle to the outer HTML      ->  Reported to bugzilla # 115528      */   	function show(evt) {   		svgdoc = evt.getCurrentNode().getOwnerDocument();         alert("svg: svgdoc=" + svgdoc);         var owner = svgdoc.ownerDocument;         alert("svg: ownerDocument=" + owner);      }   ]]></script>   <g id='xy'>      <text id='texte' x='50' y='40' onclick='show(evt)'            style='text-anchor:left;font-size:12;font-family:Arial;fill:red'>         Click me for SVG embeded info      </text>      <rect id='rectangle' onclick='change_attribut(evt)' x='50' y='50' width='20' height='50' style='fill:blue'/>   </g></svg>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?