# heightauto **Repository Path**: cmsphp/heightauto ## Basic Information - **Project Name**: heightauto - **Description**: 一直以来,这个做法是最好用的。但每次做的时候,都忘,于是每次就是百度进行搜索。今天,我想还是把它总结下来吧,对于这种常用的东西的,就应该总结为一种模块,以来常拿来用。 - **Primary Language**: HTML - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-12-01 - **Last Updated**: 2024-12-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #前端第11款:两列或者多列高度自适应的方法 ##一:简要描述 题记:一直以来,这个做法是最好用的。但每次做的时候,都忘,于是每次就是百度进行搜索。今天,我想还是把它总结下来吧,对于这种常用的东西的,就应该总结为一种模块,以来常拿来用。 ##二:相关原理 方法:“隐藏容器溢出”和“正内补丁”和“负外补丁”结合的方法。这是一种比较另类的方法,在IE6、IE7、FF3下测试通过。要点: 1、父DIV设置overflow:hidden; 2、对要高度自适应的DIV设置 padding-bottom:100000px;margin-bottom:-100000px。 注:两列布局或多列布局同理。 更多内容请看 http://www.ijquery.cn/?p=1325