开发者

jQuery slideable divs with floated images how to make the right size

开发者 https://www.devze.com 2023-01-02 14:56 出处:网络
I am relatively new to using jQuery and I开发者_C百科 have a problem with creating some sliding tabs to work with images that are floated inside.

I am relatively new to using jQuery and I开发者_C百科 have a problem with creating some sliding tabs to work with images that are floated inside.

http://www.dur.ac.uk/malachi.soord/jin/

The above page demonstrates the problem I am facing - click on the about tab and you will notice that the image that is inside is floated to the right - which I know is not taken into consideration when jQuery is calculates the height of each div tab with:

$("#content > div").each (function() {
        $(this).css("height", $(this).height());
});

Is there a work around which could be used to allow me to take this into consideration? or is there a better way to achieve what I am trying to achieving.


You don't need a height on that div. The height will auto format. I tested this on your site by editing your html with firebug.

0

精彩评论

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