Javascript 如何显示默认情况下关闭的可折叠面板?

Javascript 如何显示默认情况下关闭的可折叠面板?,javascript,html,twitter-bootstrap,twitter-bootstrap-3,dom-events,Javascript,Html,Twitter Bootstrap,Twitter Bootstrap 3,Dom Events,我在这里试着效仿这个例子 默认情况下,如何显示关闭的面板?您必须按照以下方式创建面板: <div class="panel panel-default "> <div class="panel-heading "> <h3 class="panel-title">Panel 1</h3> <span class="pull-rig

我在这里试着效仿这个例子


默认情况下,如何显示关闭的面板?

您必须按照以下方式创建面板:

<div class="panel panel-default ">
                <div class="panel-heading ">
                    <h3 class="panel-title">Panel 1</h3>
                    <span class="pull-right clickable panel-collapsed"><i class="glyphicon glyphicon-chevron-down"></i></span>
                </div>
                <div class="panel-body collapse" style="display: none;">
                    Founded in 1892 and headquartered in Fairfield, CT, LexisNexis Corporate Affiliations 
                    is a technology and financial services company. 
                    The company offers products and services ranging from aircraft engines, power generation, 
                    water processing, and household appliances, among others. 
                    It operates in business segments including Energy Infrastructure, Aviation, Healthcare, 
                    Transportation, Home &amp; Business Solutions, and GE Capital. 
                    The company also provides medical imaging, business and consumer financing, 
                    and industrial products. 
                    It has presence in North America, Europe, Asia, South America, and Africa. 
                    According to the company's current 10K government filing it had FYE 12/31/2011 revenue of 
                    $147.3 billion and has 301,000 employees.
                </div>
            </div>

小组1
LexisNexis公司成立于1892年,总部位于CT费尔菲尔德
是一家技术和金融服务公司。
该公司提供的产品和服务包括飞机发动机、发电、,
水处理和家用电器等。
其业务领域包括能源基础设施、航空、医疗、,
运输,家居及;业务解决方案和GE金融。
该公司还提供医疗成像、商业和消费者融资,
和工业产品。
它在北美、欧洲、亚洲、南美和非洲都有业务。
根据该公司目前的10000份政府文件,其2011年12月31日财年的收入为
1473亿美元,拥有301000名员工。

您可以使用jQuery执行此操作。使用onclick处理程序滑动或向下滑动面板主体

这是我的小提琴[可点击面板][1]

  [1]: https://jsfiddle.net/q8L292sk/

你试过什么了吗?是的,我试过修改javascript,但我不明白如何修改…好的,我明白这一点,但我无法以任何方式修改默认关闭面板?很抱歉误读了示例中的代码。看那张画post@junkfood看看这把小提琴