Why did the width collapse in the percentage width child element in an absolutely positioned parent on Internet Explorer 7?

前端 未结 7 1065
借酒劲吻你
借酒劲吻你 2020-12-13 05:20

I have an absolutely positioned div containing several children, one of which is a relatively positioned div. When I use a percentage-based w

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 06:01

    I think this has something to do with the way the hasLayout property is implemented in the older browser.

    Have you tried your code in IE8 to see if works in there, too? IE8 has a Debugger (F12) and can also run in IE7 mode.

提交回复
热议问题