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

前端 未结 7 1064
借酒劲吻你
借酒劲吻你 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:07

    The parent div needs to have a defined width, either in pixels or as a percentage. In Internet Explorer 7, the parent div needs a defined width for child percentage divs to work correctly.

提交回复
热议问题