Overriding overflow: hidden

后端 未结 3 1464
甜味超标
甜味超标 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条回答
  •  攒了一身酷
    2020-12-11 02:54

    In the light of more discussion with OP, this answer doesn't help. Instead see comments for clarification with OP.

    Firstly, it helps if you include some specific code.

    Generically speaking, provide a CSS selector that is more specific to the child than the one that sets the overflow: hidden;

    For instance,

    Style:

    .hide-children div {overflow: hidden;}
    .hide-children div.show-me {overflow: none;}
    

    HTML:

    But like I said, only after some sample code can a more meaningful answer be provided.

提交回复
热议问题