
[英]table td or (div) opacity change the rest of td or (div) when hover
[英]div class hover, when hover on td
我有一个TD字段和一个div。
<td class="text" valign="top">
<div class="number_post">#1</div>
</td>
我的问题是,当我将鼠标悬停在td .text上时,我怎么能改变number_post div的样式呢?
我不希望在悬停时改变.text的风格。 只有.number_post。
谢谢!
写这样的
.text:hover .number_post{
color :red;
}
就是这个:
.text:hover .number_post {color:#eee;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.