且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何获得一个div来调整其高度以适应容器?

更新时间:2023-11-02 08:00:40

$ c> top 和底部属性导航到 0 position:absolute 。将容器设置为 position:relative

You can achieve this with setting both the top and bottom attributes of the nav to 0 and the position: absolute. Set the container to position: relative.

查看如何完成

在文章底部有一个指向Dean Edwards的链接'IE7(和IE8)js库,您应该为IE6访问者包括。它是一个JS库,实际上MAKES IE6的行为像IE7(或8),当你包括它。甜! ...当然还有bug,但至少你知道如何处理它们。

At the bottom of that article, there is a link to Dean Edwards' IE7 (and IE8) js library that you should include for IE6 visitors. It is a JS library that actually MAKES IE6 behave like IE7 (or 8) when you include it. Sweet! ... of course there are bugs with it, but at least you know how to deal with them.

Dean Edwards的IE7和8 JS库