回答編集履歴
1
情報の追加。
test
CHANGED
@@ -27,3 +27,59 @@
|
|
27
27
|
【CSSのセレクタとは?覚えておきたい25種類と書き方】
|
28
28
|
|
29
29
|
[https://saruwakakun.com/html-css/reference/selector](https://saruwakakun.com/html-css/reference/selector)
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
---
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
**追記:**
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
記事本文の追記に対して。
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
```CSS
|
52
|
+
|
53
|
+
.wrapper:hover .logout:hover + .logout_pop{
|
54
|
+
|
55
|
+
display: block;
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
```HTML
|
62
|
+
|
63
|
+
<div class="wrapper">
|
64
|
+
|
65
|
+
<div class="effect"></div>
|
66
|
+
|
67
|
+
<form class="" action="#" method="post">
|
68
|
+
|
69
|
+
<span class="logout">
|
70
|
+
|
71
|
+
<button class="logout_button" type="submit" name="logout" value="logout">
|
72
|
+
|
73
|
+
<i class="fas fa-sign-out-alt"></i>
|
74
|
+
|
75
|
+
</button>
|
76
|
+
|
77
|
+
</span>
|
78
|
+
|
79
|
+
<span class="logout_pop">ログアウト</span>
|
80
|
+
|
81
|
+
</form>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
```**動くサンプル:**[https://jsfiddle.net/05ybq2wz/](https://jsfiddle.net/05ybq2wz/)
|