English 中文(简体)
JQuery手风琴的手动尺寸
原标题:Manual Sizing for a JQuery Accordion

我目前正在构建一个非常有趣的UI,例如JQuery Accordion位于JQuery对话框中。让我困惑的是为这项协议确定一个具体的高度。我曾尝试使用{fillSpace:true},但这会导致手风琴超过对话框的边缘(我已将其配置为而不是可调整大小)。因此,fillSpace和自动高度调整不是我想要的。相反,我希望能够为Accordion设置一个特定的大小(最好是像素数)。

最佳回答

在可折叠部分中添加间距,以便“自动隐藏”能够适当地容纳其内容。间距可以是<;br/>标签、div或其他修饰元素。然后确保手风琴自动高度已启用。

注意:这就是我解决问题的方法。

问题回答

Post what you have tried to jsbin or jsfiddle. In my solutions containing accordions I usually place the according to a div with appropriate header and content panels; this div should be able to grow.I uses percentages for sizing.





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.