CSS visibility属性的覆盖性实例页面

回到相关文章 »

代码:

CSS代码:
.visibilityHidden { visibility: hidden; }
.visibilityVisible { visibility: visible; }
                
HTML代码:
<p>
    <a href="#" class="visibilityHidden">
        <img src="//image.zhangxinxu.com/image/study/s/s256/mm1.jpg" />
    </a>
</p>
<p>
    <a href="#" class="visibilityHidden">
        <img class="visibilityVisible" src="//image.zhangxinxu.com/image/study/s/s256/mm1.jpg" />
    </a>
</p>
                

效果: