0

单击 xlink:href 时,它会链接到正确的页面,但会忽略它应该运行的代码以及该页面的 css 样式。

背景信息:使用离子框架在移动应用程序上编码。

在 HTML 页面上显示 SVG 的代码。

<object id="svgImage" type="image/svg+xml" data="img/Floor Plan SVG.svg">
                Your browser does not support SVG
</object>

.svg 文件中的代码

<a
     xlink:href="../templates/QRCode.html"
     transform= (removed to ease viewing)
     id= (removed to ease viewing)
     target="_blank">
    <path
       style= (removed to ease viewing)
       d= (removed to ease viewing)
       id= (removed to ease viewing)
       inkscape:connector-curvature="0" />
  </a>
  <a
     transform= (removed to ease viewing)
     id= (removed to ease viewing)
     target="_blank"
     xlink:href="../templates/RoomInformation.html">
    <path
       style= (removed to ease viewing)
       d= (removed to ease viewing)
       id= (removed to ease viewing)
       inkscape:connector-curvature="0" />
  </a>
4

0 回答 0