回答編集履歴

2

コードにコメント追記

2019/12/12 04:48

投稿

hatena19
hatena19

スコア33699

test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  content: "";
30
30
 
31
- background: inherit;
31
+ background: inherit;/*親の背景を継承*/
32
32
 
33
33
  transition: all 0.3s ease;
34
34
 

1

サンプル追加

2019/12/12 04:48

投稿

hatena19
hatena19

スコア33699

test CHANGED
@@ -69,3 +69,7 @@
69
69
  }
70
70
 
71
71
  ```
72
+
73
+
74
+
75
+ [動作確認サンプル](https://codepen.io/hatena19/pen/xxbwXpe?editors=0100)