html
1<ul> 2 <li> 3 <div class="big-dream"> 4 <div class"big-color">これはテスト 5 </div> 6 <div class="big-content"> 7 </div> 8 </div> 9 10 </li> 11 <li></li> 12 <li></li> 13 </ul>
css
1ul{ 2 list-style: none; 3} 4 5.big-dream{ 6 background-color: #ffc; 7 height:300px; 8 width:200px; 9} 10.big-color{ 11 background-color: #ffd; 12 height:100px; 13 width:200px; 14} 15.big-content
上記のようなコードなのですが、なぜかbig-colorクラスの高さがまったく出ません....
なぜでしょうか?
教えていただけると嬉しいです!
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/02/03 08:03