Overriding overflow: hidden

后端 未结 3 1469
甜味超标
甜味超标 2020-12-11 02:10

I have a parent container with a lot of child elements. Due to animation reasons (child elements sliding in and out of the parent) I have set it\'s overflow pro

3条回答
  •  萌比男神i
    2020-12-11 02:40

    Answer is: You can't. Either the parent has overflow:hidden then all child-elements will be clipped, or you have overflow:(visible|auto|scroll|...) then all children are treated according to that rule. There is no possibility you could mix states - all children are treated equally.

    However, you could introduce additional container-elements inside the parent (which no longer has overflow:hidden) like in this pseudo-code:

        
       
          
          
          
       
    
       
          
          
           
       
    
    

    edit: example

提交回复
热议问题