用css 去模擬js mouseover 特效

假設parent  id 是a
child  id 是 b

我想讓mouseover a 時 b會出現
則可以用這樣的css 語法

#a:hover #b{
  display: block;
}

留言

熱門文章