Allow specific tag to override overflow:hidden

前端 未结 11 2363
抹茶落季
抹茶落季 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:53

    You can overflow an element out of the div by wrapping it in another div, then set your image as position:absolute; and offset it using margins.

    .no-overflow{ overflow:hidden; width: 500px height: 100px } .escape{ position: absolute; margin-bottom: -150px; }

    Example (tested in firefox + IE10) http://jsfiddle.net/Ps76J/

提交回复
热议问题