Allow specific tag to override overflow:hidden

前端 未结 11 2355
抹茶落季
抹茶落季 2020-11-27 11:47

I\'ve got a

, that\'s a certain height and width, and overflow:hidden so that specfic inner images are clipped
11条回答
  •  情话喂你
    2020-11-27 12:47

    Wrap your overflow: hidden div with another div that has a css property of -

    transform: translate(0, 0);

    and in your specefic tag that you want it to override the - overflow: hidden , set it with -

    position: fixed; it will continue to be position relatively to its parent

    i.e -

    .section {
        ...
        transform: translate(0, 0);
    }
    
    .not-hidden {
        position: fixed;
        ...
    }
    

    See the fiddle here

提交回复
热议问题