使用html中的空格处理类名 [英] handling class name with spaces in it html
本文介绍了使用html中的空格处理类名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网站上有一个joomla冰手风琴。我试图通过使用Firebug获得手风琴标签的链接
其中一个标签的代码是
< p id =ABCclass =msg_head>内容< / p>
此选项卡的链接是
https://website.org/eweb/DynamicPage.aspx?Site=Inst&WebKey=81c17c83-4cb1-456a-a9d5-6b8fcc94fc63&accordion=EMD#EMD
我把以下链接放在哪里?
< p id =ABC subclass =msg_head>内容< / p>
解决方案
如果我了解您的问题,在查询字符串中输入ABC sub值。因此,您将拥有Accordion = ABC sub。
您需要进行网址编码,因此根据以下内容空格将等于%20: URL编码
Accordion = ABC%20sub
I have a joomla ice accordion on a website. I am trying to get the links of the accordion tabs by using Firebug
The code for one of the tabs is
<p id="ABC" class="msg_head">Content</p>
The link to this tab is
https://website.org/eweb/DynamicPage.aspx?Site=Inst&WebKey=81c17c83-4cb1-456a-a9d5-6b8fcc94fc63&accordion=EMD#EMD
What do I put the link of the following as?
<p id="ABC sub" class="msg_head">Content</p>
解决方案
If I understand your question, you're looking to put the value "ABC sub" in the query string. So you'll have "Accordion=ABC sub".
You'll want to URL encode, so spaces will equal "%20" according to:URL Encoding
"Accordion=ABC%20sub"
这篇关于使用html中的空格处理类名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文