|M| <a href="">123</a> 在网页中隐藏掉这个链接的最好办法是什么
谢谢
------解决方案--------------------点击连接无效还是看不到字?
------解决方案-------------------- <div style= "display:none "> <a href= " "> 123 </a> </div>
------解决方案-------------------- <a href= " "> 123 </a>
<a href= " "> 123 </a>
<a href= " "> 123 </a>
<a href= " "> 123 </a>
<a href= " "> 123 </a>
<a href= " "> 123 </a>
<script language=javascript>
window.onload = function() {
var hides = document.getElementsByTagName( 'a ');
for (var hide in hides)
{
if (hides[hide].innerText== '123 ')
{
hides[hide].style.display = 'none ';
}
}
}
</script>
------解决方案-------------------- <a href= " " style= "display : 'none '; "> 123 </a>
------解决方案-------------------- <a href= " " style= "display:none "> 123 </a>