下記のコードについてなのですが、
html
1<div class="about"> 2 <div class="container"> 3 <img src="/wp-content/themes/ill/img/page/front/front_about_pic_1.png" alt=""> 4 5 <div class="about_text"> 6 <h3>なりたい自分になれる場所<br>一人一人に合わせたトレーニング</h3> 7 <p>体</p> 8 <a href=""> 9 <p>詳しく見る</p> 10 </a> 11 </div> 12 13 </div> 14 15</div>
scss
1.about { 2 @include container { 3 display: flex; 4 5 img { 6 width: 50%; 7 } 8 } 9}
scssの@includeで呼び出した中のflexとimgのwidthが反映されません。
@includeのcontainer自体は反映されております。
なぜなのか、またどのようにかいたらいいのか教えて頂きたいです。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/01/20 02:28
2022/01/20 06:10