Setting overflow:hidden only for certain elements

前端 未结 2 603
再見小時候
再見小時候 2021-01-13 22:36

http://jsfiddle.net/waitinforatrain/sEX3n/

I have two divs in a container with absolute position. Both of them are set to be outside the boundaries of the container.

相关标签:
2条回答
  • 2021-01-13 23:20

    The most obvious solution is to:

    • Add an extra wrapper div.
    • Apply overflow: hidden to this div.
    • Move the time outside this div.

    Like this: http://jsfiddle.net/sEX3n/4/

    0 讨论(0)
  • 2021-01-13 23:43

    Why not just move div#time outside the div#video-seek ?

    Like this : http://jsfiddle.net/moeishaa/XNAmn/

    0 讨论(0)
提交回复
热议问题