CSS Overflow - Not working as expected

前端 未结 3 1113
暖寄归人
暖寄归人 2021-01-19 05:00

http://jsfiddle.net/bSnaG/

In my mind the above example should look like a grey box with #x not going past the edge and #y poking out the b

3条回答
  •  孤独总比滥情好
    2021-01-19 05:32

    I think the problem is your height: 100px in the outer div. If you remove this height attribute, do you get the result you're looking for?

    Otherwise, I think batwad's probably knocked the nail on the head using three divs.

提交回复
热议问题