使用“?”在SVG href中 [英] using "?" in SVG href

查看:153
本文介绍了使用“?”在SVG href中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些重大问题想要获得?在作为我的SVG脚本的一部分的hrefs中。我想从我的SVG内部链接到我的网站的其他部分,并且我的大部分页面都是动态的,需要$ _GET变量才能实时创建它们。每当我尝试在href中包含问号时,SVG似乎都会抛出一个spaz,但为了传递$ _GET变量,我需要这么做......还有另一种方法吗?!

I'm having some major problems trying to get a "?" inside of hrefs that are part of my SVG scripts. I want to link to other parts of my website from inside of my SVGs, and most of my pages are dynamic that require $_GET variables to create them on the fly. SVG seems to throw a spaz every time I try to include question marks inside the href, but I need to do that in order to deliver the $_GET variables... is there another way??!

推荐答案

您是否尝试用ascii代码替换它? &安培;#63;
就像你必须替换&由& amp;

Have you try to replace it with the ascii code instead? ? In the same way that you have to replace the & by &

这篇关于使用“?”在SVG href中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆