前提・実現したいこと
オンラインの無料学習サイトでBootstrapを学習しました
そこで最近、公式サイトの日本語訳サイトを読んで、色々な組み合わせをして遊んでいます
その中で「Tables」と「Dropdowns」を組み合わせていた際の疑問です
質問に書かれているソースコードの動作確認は「Google Chrome 70」で行っています
発生している問題・エラーメッセージ
「Tables」と「Dropdowns」を組み合わせるとドロップダウンを開いた際、ドロップダウンのボタンが隠れます
これは正しい動作でしょうか?もし正しい動作なら、どうすればボタンが隠れないようにできるのでしょうか?
該当のソースコード
html
1<div class="table-responsive"> 2 <table class="table"> 3 <thead> 4 <tr> 5 <th>#</th> 6 <th>Heading</th> 7 <th>Heading</th> 8 <th>Heading</th> 9 <th>Heading</th> 10 <th></th> 11 </tr> 12 </thead> 13 <tbody> 14 <tr> 15 <td>Cell</td> 16 <td>Cell</td> 17 <td>Cell</td> 18 <td>Cell</td> 19 <td>Cell</td> 20 <td> 21 <div class="dropdown"> 22 <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 23 Dropdown button 24 </button> 25 <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> 26 <a class="dropdown-item" href="#">Action</a> 27 <a class="dropdown-item" href="#">Another action</a> 28 <a class="dropdown-item" href="#">Something else here</a> 29 </div> 30 </div> 31 </td> 32 </tr> 33 34 </tbody> 35 </table> 36</div>
何か見落としている所があれば教えて頂きたいです
よろしくお願いします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/01/17 08:45