如何使用css隐藏div的id [英] How to hide a div by it's id using only css

查看:70
本文介绍了如何使用css隐藏div的id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个div标签。

 <   div     id   =  a1 >  
< / div >
< div id = a2 >
< / div >



我需要什么时候我盘旋div a1然后div a2 get hide。我不知道CSS代码。

在此先感谢您的帮助。非常感谢您的帮助。



Sazzad

解决方案

< blockquote>如果您不懂CSS,请继续学习。没有人可以为您学习。从这里开始: http:// www.w3.org/Style/CSS/ [ ^ ]。



请参阅,例如: http://stackoverflow.com/questions/17393231/css-on-hover-show-and-hide-different-divs-at-the-同时 [ ^ ]。



-SA

I have two div tag.

<div id="a1">
</div>
<div id="a2">
</div>


I need when I hover div a1 then div a2 get hide. I don't know the CSS code.
Thanks in advance, your help is greatly appreciated.

Sazzad

解决方案

If you "don't know CSS, learn it. No one can learn it for you. Start here: http://www.w3.org/Style/CSS/[^].

Please see, for example: http://stackoverflow.com/questions/17393231/css-on-hover-show-and-hide-different-divs-at-the-same-time[^].

—SA


这篇关于如何使用css隐藏div的id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆