1

Я пытаюсь последовать примеру здесьКак я могу показать эту сборную панель по умолчанию?

http://www.prepbootstrap.com/bootstrap-template/collapsepanels

Как можно показывать по умолчанию панель закрыта?

+0

вы пробовали что-нибудь еще? –

+0

Да, я попытался изменить javascript, но я не понимаю, как ... – junkfood

ответ

0

Вы должны создать панель, как это:

<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> 
+0

ok Я понимаю это, но я не могу каким-либо образом изменить закрытие панели по умолчанию? – junkfood

+0

Извините, неверно прочитайте код в образце. посмотрите на поднятый пост – rick

0

Вы делаете это с помощью JQuery. Используйте обработчик onclick для перемещения по экрану или сдвиньте тело панели.

Вот моя скрипка [интерактивная панель] [1]

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

@junkfood взгляните на эту скрипку – noobCoder