Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery Ajax加载不显示SVG图像_Jquery_Ajax_Html_Svg - Fatal编程技术网

Jquery Ajax加载不显示SVG图像

Jquery Ajax加载不显示SVG图像,jquery,ajax,html,svg,Jquery,Ajax,Html,Svg,请检查此url: 进入网站,您将看到一个SVG颜色窗口菜单,其文本为图像,单击其中一个。 加载AJAX后,在新页面中刷新浏览器。 现在再次单击“回车”并单击左上角的徽标,将看到没有文本的菜单。 这就是问题所在!我曾尝试在AJAX中通过jQuery调用图像,但没有成功,我如何修复它 这是SVG结构: <svg class="nav menu" xmlns="http://www.w3.org/2000/svg"> <a xmlns:xlink="http://www.w3.org

请检查此url:
进入网站,您将看到一个SVG颜色窗口菜单,其文本为图像,单击其中一个。
加载AJAX后,在新页面中刷新浏览器。
现在再次单击“回车”并单击左上角的徽标,将看到没有文本的菜单。
这就是问题所在!我曾尝试在AJAX中通过jQuery调用图像,但没有成功,我如何修复它

这是SVG结构:

<svg class="nav menu" xmlns="http://www.w3.org/2000/svg">
<a xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/en/about-us/introduction" xlink:title="">
<text>About us</text>
<defs>
    <pattern id="text144" patternUnits="objectBoundingBox" width="100%" height="100%">
                    <image xlink:href="http://www.kheshtokhak.com/images/window_text/about_us_en.png" width="163" height="275"></image>
    </pattern>
</defs>
<path fill="url(#text144)" d="M33 156 l125 -30 l38 108 l-163 167 z"></path>
</a>
<a xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/en/events" xlink:title="">
<text>Events</text>
<defs>
    <pattern id="text145" patternUnits="objectBoundingBox" width="100%" height="100%">
                    <image xlink:href="http://www.kheshtokhak.com/images/window_text/events_en.png" width="285" height="160"></image>
    </pattern>
</defs>
<path fill="url(#text145)" d="M37 397 l156 -160 l129 47 l-43 113 z"></path>
</a>
<a xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/en/projects/all-projects" xlink:title="">
<text>Projects</text>
<defs>
    <pattern id="text146" patternUnits="objectBoundingBox" width="100%" height="100%">
                    <image xlink:href="http://www.kheshtokhak.com/images/window_text/projects_en.png" width="285" height="160"></image>
    </pattern>
</defs>
<path fill="url(#text146)" d="M37 401 l242 0 l43 113 l-129 47 z"></path>
</a>
<a xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/en/contact-us" xlink:title="">
<text>Contact</text>
<defs>
    <pattern id="text147" patternUnits="objectBoundingBox" width="100%" height="100%">
                    <image xlink:href="http://www.kheshtokhak.com/images/window_text/contact_en.png" width="163" height="275"></image>
    </pattern>
</defs>
<path fill="url(#text147)" d="M33 397 l163 167 l-38 108 l-125 -30 z"></path>
</a>
</svg>


而且所有的图像都在模式之间。

web没有源代码就不能提供任何建议。。。。请发一些邮件看看你的控制台。我看到很多404错误。显然,您正在尝试加载
http://www.kheshtokhak.com/images/music.mp3
但是失败了。@DanielCheung谢谢,这不是问题,问题是在SVG中加载图像,你有什么想法吗?@Xoce,谢谢,我添加了SVG结构。