バックグラウンドイメージでスワップするサブクラスを指定する方法を教えてください。私はどちらかのサブクラスPOST1などでポストに依存して画像を変更したり、理想的にHTMLでそれを上書きしたいが、それは働いていないサブクラスを使用して背景イメージを変更できますか?
.background-image-post{
background-image:url('../images/posts/background-post.jpg');
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
}
:
は、ここに私のCSSです。
どのような考えですか?
いない '選択図】図-画像post.post1 {背景画像:のURL(...); } '仕事? – jhpratt
"サブクラス"を定義する –