开发者

Is there a way to show all content in a jquery accordion (without scrollbars)

开发者 https://www.devze.com 2023-02-19 23:36 出处:网络
Autoheight : false seems to have no effect. Even if it did work it doesnt sound like its what I need since one section could be really long and the fololowing really short and I wouldnt want the two s

Autoheight : false seems to have no effect. Even if it did work it doesnt sound like its what I need since one section could be really long and the fololowing really short and I wouldnt want the two sections with the same height.开发者_运维百科

The div in which the content is displayed can be of variable height so I cannot use a fixed height. I have tried most of the options and none of them seem to have the effect I want but I think I am missig something as this sounds like it should be a common requirement since scollbars in the accordion look rather horrible.


Have you tried to explicitly set the Height and Width of the Acccordion to the content? For example load the content into a hidden div and then get its dimensions. Then resize the Accordion and load the contents to fit.


Use this line instead:

heightStyle: "content"


autoheight : false

It is auto with a small a

0

精彩评论

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

关注公众号