<分区>
<分区>
这是我的html
<a class="button special" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=vpspricing&page=http://www.hostgator.com/vps-hosting">Select</a>
一些 CSS——我认为这不重要,但无论如何都要包括在内。
background-color: #449403;
box-shadow: none !important;
color: #FFF !important;
margin-left: 2px;
自 http://www.google.com 以来,我已将其固定为 href 中的值将工作和各种其他 URL。我的 a 元素出现在 inspect 元素中,但它没有出现在 gui 中,我不知道为什么。那里有我应该转义的 Angular 色吗?
最佳答案
尝试对查询字符串进行 URL 编码。您可以使用 encodeURI
JavaScript 函数
关于html - href 属性破坏元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30606544/