Show div when hover another div using only css

前端 未结 3 1739
野性不改
野性不改 2020-12-09 16:39

I have searched the web for this one but didn\'t find anything similar.

Say we have div A and div B. When hover on div A, div b should be visible ON (should look lik

3条回答
  •  伪装坚强ぢ
    2020-12-09 17:17

    If you don't want to use the selector + or ~ which aren't compatible with some browsers, it is just possible if the

    to show (e.g. div#b) is a child of the
    to hover (e.g. div#a).

提交回复
热议问题