Show child div on mouse hover of parent - needs javascript?

前端 未结 7 1992
悲哀的现实
悲哀的现实 2021-02-01 13:27

I need to show a div when you house over its parent (default is for the child div to be hidden). Is the only way to do this with javascript? Thanks

7条回答
  •  伪装坚强ぢ
    2021-02-01 13:55

    Using jQuery you can add a mouseover event to the parent div, and show the child div. See this fiddle as an example.

提交回复
热议问题