1

私はここにどのようにどのように私はこのcollallibleパネルをデフォルトで閉じることができますか?

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

私はこれを理解していますが、私はデフォルトでパネルを閉じるために何らかの方法で変更することはできませんか? – junkfood

+0

サンプルのコードを間違って読みました。アップした投稿を見てください – rick

0

あなたは、この使用してjQueryの操作を行います。パネル本体をスライドアップまたはスライドダウンするには、onclickハンドラを使用します。ここで

は私のバイオリンは、[クリック可能なパネル]で、[1]

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

@junkfoodこのフィドルを見てください – noobCoder

関連する問題