回答編集履歴

1

追記です

2019/01/16 06:30

投稿

akihiro3
akihiro3

スコア955

test CHANGED
@@ -55,3 +55,47 @@
55
55
  li.pointer:hover {background:#f00;}
56
56
 
57
57
  ```
58
+
59
+
60
+
61
+ 修正
62
+
63
+ ---
64
+
65
+ htmlのclass追加無しで
66
+
67
+ cssのみの下記でどうでしょうか?
68
+
69
+ ```css
70
+
71
+ li {
72
+
73
+ list-style-position: inside;
74
+
75
+ padding-left: 1em;
76
+
77
+ }
78
+
79
+ li:hover {
80
+
81
+ background:#aaf;
82
+
83
+ }
84
+
85
+ ul ul {
86
+
87
+ background: #fff;
88
+
89
+ padding-left: 1em;
90
+
91
+ margin-left: -1em;
92
+
93
+ }
94
+
95
+ li.pointer:hover {
96
+
97
+ background:#f00;
98
+
99
+ }
100
+
101
+ ```