これでいいんですかね?
css
1/*質問箇所(これも青くしたい)*/
2figure:hover ~ .btn-horizon .btn-blue-horizon{
3 background: #4285F4;
4}
###追記
あ。
このままだとお茶マウスオーバーでもコーヒーの色が変わるのでsection
やdiv
か何かでくくってください。
html
1<!-- お茶の部分 -->
2<section>
3<figure>
4 <img src="http://bit.ly/2fTjc31" class="coffe" target="_blank">
5</figure>
6
7<h2 class="zakkuri-blue">画像ホバーで青くなる①</h2>
8
9<p class="btn-blue"><a href="http://example.com">ボタン青①</a></p>
10</section>
11
12<!-- コーヒーの部分 -->
13<section>
14<figure>
15 <img src="http://bit.ly/2fgCfR6" class="coffe" target="_blank">
16</figure>
17
18<h2 class="zakkuri-blue">画像ホバーで青くなる②</h2>
19
20<p class="btn-horizon">
21 <span class="btn-yel-horizon"><a href="http://example.com">ボタン黄②</a></span>
22 <span class="btn-blue-horizon"><a href="http://example.com">ボタン青②</a></span>
23</p>
24</section>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/11/07 13:28
2016/11/07 13:34
退会済みユーザー
2016/11/07 13:40
退会済みユーザー
2016/11/07 13:47