Bootstrap collapse() and flash of unhidden content
问题 Using Twitter Bootstrap framework, I'm using $('#foo').collapse() to make an FAQ with collapsable answers that are hidden by default, and then visible when you click the question. The problem is that I get a flash of all the content before the .collapse() is initialized. I can't hide the content in advance (via display: none ), otherwise the collapse function doesn't know the height of the boxes and collapsing/expanding doesn't work. I think this could be solved if $('#foo').collapse() didn't