繁体   English   中英

纯css悬停显示另一个元素可能吗?

[英]pure css hover show another element possible?

<a href="">
  text here always show
 <div  style="display:none;">
   hide text here
 </div>
</a>


a:hover{

//when hover show 'hide text here' ; when not hover, hide it again 
}

可以用纯css来做这个效果吗?

a div {
    display: none;
}

a:hover div {
    display: block;
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM