CSS overflow-y:visible, overflow-x:scroll

前端 未结 3 2052
难免孤独
难免孤独 2020-12-03 02:35

I\'ve seen a few questions like this in my search, but either the question didn\'t get answered properly or no answer was given. So, I\'ll ask again.



        
3条回答
  •  情书的邮戳
    2020-12-03 02:56

    It solved here! They use css and JS.

    .child:hover .child-menu { display: block; }
    
     .parent { overflow-y:auto; overflow-x:hidden; width:100px; height:150px  }
        .child { position:static; }
        .child-menu { position:absolute; display:inline-block; display: none; }
    

    https://css-tricks.com/popping-hidden-overflow/

    https://jsfiddle.net/68fBE/2/

提交回复
热议问题