Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何让 ASP.Net Ajax 控件工具包中的 Accordion 控件自动调整大小,以便填充它所包含的 DIV 元素,并对调整大小的元素做出反应?
谢谢!
马丁
我刚刚尝试使用没有任何 CSS 的 Accordion 设置示例应用程序,并且默认情况下它实际上随着内容的增长而增长。我的猜测是您使用的 CSS 以某种方式限制了增长。例如,尝试使用 min-height 而不是 height ,看看是否可以解决它。如果这样的东西不起作用,我建议你发布你使用的 CSS。
我认为您可以将其放在高度为 100% 的 div 中,并且手风琴 AutoSize="Fill" 有一个属性。希望它有效。