我使用 SVG 文件。SVG 文件具有 xlink-ed jQuery。
在 Firefox 20.0 中打开 svg 文件时出现错误
类型错误:a.style 未定义
如果我在 Firefox 19 和更早版本中打开 svg 文件,则不会出现错误。
任何想法为什么带有 svg 的 jQuery 在 FF20.0 中不起作用?
我的 SVG 演示文件
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="467" height="462">
<rect x="80" y="60" width="250" height="250" rx="20"
style="fill:#ff0000; stroke:#000000;stroke-width:2px;" />
<rect x="140" y="120" width="250" height="250" rx="40"
style="fill:#0000ff; stroke:#000000; stroke-width:2px;
fill-opacity:0.7;" />
<script
xlink:href="http://code.jquery.com/jquery-1.9.1.js"
id="script10"
type="text/javascript" />
</svg>