搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

jusonlex

  • 3 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 cor-el

more options

SVG UI elements of the website vkprofi.ru not visible in the browser for internal pages, how can I fix it?

SVG UI elements of the website vkprofi.ru not visible in the browser for internal pages, how can I fix it?
已附加屏幕截图

所有回复 (3)

more options

Hi. I see the SVG image if I open this page in a Firefox tab.

Isn't that working for you?

Did you check this in the Web Console and in the Inspector?

more options

cor-el сказал(а)

Hi. I see the SVG image if I open this page in a Firefox tab. Isn't that working for you? Did you check this in the Web Console and in the Inspector?

It isn't woking if i come to internfl page, like "cover" or "avatar".

more options

OK.

I did some research and it appears to be caused by using the base tag.

<base href="http://vkprofi.ru/">

If you use the base tag the Firefox will looks for the ID in the wrong location (in a file on internet and not in the current document). <strike>The solution is to use the full path in the use tag.</strike>

In your case you can add the page path in front of the link:

<svg class="header-logo-svg" width="104" height="36">
  <use xlink:href="avatar/#svg-logo"></use>
</svg>
<svg class="svg-vk" width="33.25" height="19.25">
  <use xlink:href="avatar/#svg-vk"></use>
</svg>

See also:

由cor-el于修改