CSSで同じレイアウトを使用しつつ、
文の中身を変更する方法がわかりません。
php
1省略 2~~~~~~~~~~~~~~ 3 <div class="col-lg-8 col-md-10 mx-auto"> 4 <div class="post-heading"> 5 <div class="title_text1"></div> 6 </div> 7~~~~~~~~~~~~~~ 8省略
css
1 .title_text1 { 2 font-size: 60px; 3 font-weight: bold; 4 text-align: right; 5} 6 7.post-id-33, .title_text1:before{ 8 content: '33'; 9} 10.post-id-36, .title_text1:before{ 11 content: '36'; 12 }
上記のように書いていますが
表記されるページには
「 36 」
と表記されます。
cssにif文がないのは存じ上げています。
どのように表記すれば同じスタイルを使用しつつ、
contentだけ投稿記事に合わせた変更が可能になるでしょうか?
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。