我只有几个相同的锚标签。但是其中之一无法正常工作。
我已经在这里托管了内容
任何帮助,将不胜感激
编辑-向问题添加了代码:
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
<a onclick="alert(1) " style=" text-decoration: underline;">111</a>
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
空格实际上代表某种非印刷字符,最终成为操作问题的根源。
在该行的HTML中,您有一些奇怪的隐藏字符。具体地,封闭之前"
的onclick
和开口后"
的style
。
如果使用右箭头键在HTML行中移动,则可以对其进行优化。
这是您的HTML粘贴到一个简单的文字处理器中:
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
<a onclick="alert(1) " style=" text-decoration: underline;">111</a>
<a onclick="alert(1)" style="text-decoration: underline;">111</a>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句