开发者

Jquery Animate problems

开发者 https://www.devze.com 2023-03-22 00:35 出处:网络
I am using jquery animate to change the size of a div when the 开发者_StackOverflow中文版content is loaded. This looks good when little bits of text are being loaded but not when a lot of text is bein

I am using jquery animate to change the size of a div when the 开发者_StackOverflow中文版content is loaded. This looks good when little bits of text are being loaded but not when a lot of text is being loaded. Is there a way to make them look the same?

For example: http://www.scotwebtech.co.uk

Click "our services" for lots of text and "portfolio" for a small amount of text.


this can be a solution:

use two wrappers for your content:

<div class='wrapper'>
    <div class='content'>
        content here...
    </div>
</div>

and stylesheets:

.wrapper {overflow:hidden;}
.content {width:473px (static width)}

now if you animate the width of wrapper it will look fine.

0

精彩评论

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