|
一、利用marquee属性实现 隐藏代码如下:
- <marquee direction=upbehavior scrollloop=3 scrollamount=1 scrolldelay=10 align=top bgcolor=#ffffff height=3 width=2 hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()>
- 百度一下,你就知道<a href="http://www.baidu.com/">百度一下</a>
- </marquee>
复制代码
这种文本和链接以跑马灯的形式快速闪现,隐藏在网页汇总。 小结:以前很多用这种方法的,最近见得少了。
二、利用HTML+CSS挂暗链手法display属性运用 将display属性设置为none,网页上面就不会显示需要隐藏的内容。 display属性运用隐藏链接案例 - <div style=”display:none;”>
- <a href=”http://http://www.baidu.com/”>百度一下</a>
- </div>
复制代码
display属性运用隐藏文本案例
- <div style=”display:none;”>
- <h1>蜘蛛池</h1> | <h2>超级蜘蛛池</h2> | <h3>百度蜘蛛池</h3>
- </div>
复制代码
|