这是一个奇怪的问题,但我得到了一个html文件,它具有标签的B标签和列表的单独ol标签。CSS - 在元素E2上悬停时显示元素E1
像这样
<b> Title of the list </b>
<ol>
<li> List item 1 </li>
<li> list item 2 </li>
</ol>
我希望做的是,节目列表,当鼠标悬停称号。我该怎么做呢?
现在这就是我所拥有的。
ol
{
visibility: none;
}
我需要找到这部分
b:hover
{
/*something that shows the ol list */
}
是否确定要使用'visibility'了'display' ? –
可能重复[如何更改一个元素,而徘徊在另一个](http://stackoverflow.com/questions/8614423/how-to-change-one-element-while-hovering-over-another) – Pavlo