回答編集履歴
2
サンプルリンク追加
test
CHANGED
@@ -91,3 +91,5 @@
|
|
91
91
|
}
|
92
92
|
|
93
93
|
```
|
94
|
+
|
95
|
+
[CodePenサンプル](https://codepen.io/hatena19/pen/RwGJRNY)
|
1
コード追記
test
CHANGED
@@ -29,3 +29,65 @@
|
|
29
29
|
}
|
30
30
|
|
31
31
|
```
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
追記
|
36
|
+
|
37
|
+
---
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
下記のようなことがご希望の動作でしょうか。
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```css
|
46
|
+
|
47
|
+
.tooltip {
|
48
|
+
|
49
|
+
background: gray;
|
50
|
+
|
51
|
+
opacity: 0;
|
52
|
+
|
53
|
+
padding: 1.2rem 2rem;
|
54
|
+
|
55
|
+
position: absolute;
|
56
|
+
|
57
|
+
right: 0rem;
|
58
|
+
|
59
|
+
text-align: left;
|
60
|
+
|
61
|
+
top: 0rem;
|
62
|
+
|
63
|
+
transform: translate3d(0, -10px, 0);
|
64
|
+
|
65
|
+
transition: all 0.15s ease-in-out;
|
66
|
+
|
67
|
+
width: 180px;
|
68
|
+
|
69
|
+
z-index: 100;
|
70
|
+
|
71
|
+
pointer-events: none; /* ホバー無効 */
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
.clickmsg {
|
76
|
+
|
77
|
+
background-color: pink; /* 範囲の確認用 */
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
.clickmsg:hover .tooltip,
|
82
|
+
|
83
|
+
.tooltip:hover {
|
84
|
+
|
85
|
+
opacity: 1;
|
86
|
+
|
87
|
+
transform: translate3d(0, 0, 0);
|
88
|
+
|
89
|
+
pointer-events: auto; /* ホバー有効 */
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
```
|