开发者

Dynamically resizing div

开发者 https://www.devze.com 2023-01-24 05:11 出处:网络
I\'m working on my portfolio, and I\'m making it all on one page, javascript based. My problem is, if I load in a different page, the div containing the content of the page doesn\'t resize.

I'm working on my portfolio, and I'm making it all on one page, javascript based. My problem is, if I load in a different page, the div containing the content of the page doesn't resize.

http://portfolio.theadamgaskins.com/Portfolio/ Click "Death Worm" to see what开发者_开发知识库 I mean.

So, how do I make a div resize vertically to fit its content?


jQuery has nice tools to let you resize whatever you want: http://api.jquery.com/resize/

Although you don't explicitly set the #pageContent height - I think whatever curvyCorners is - does


Your div id'd pageContent has a height.


It should by default. Use Firefox with the Firebug extension, or Google-chrome, to debug dynamic pages, using the right-click "inspect element" feature.

0

精彩评论

暂无评论...
验证码 换一张
取 消