質問編集履歴
3
疑問点を整理
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,10 +9,11 @@
|
|
9
9
|
なんとかcssとjqueryでToolTipsは可能のようだが、onMouseするための三角の印
|
10
10
|
をどのようにHTMLのtable内に配置したらいいのかが不明である
|
11
11
|
|
12
|
-
#回答を受けてやってみたこと
|
12
|
+
#回答を受けてやってみたこと+問題点
|
13
13
|
■問題点
|
14
14
|
セル内で、赤色の三角よりやや左でonMouseしたとき
|
15
15
|
ポップアップした部分が点滅して表示されます。
|
16
|
+
どこを改修したらよいでしょうか?
|
16
17
|
|
17
18
|
```HTML
|
18
19
|
<th style="margin-top:0px;padding-top:0px;padding-right:0px;" >
|
2
CSS修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -55,4 +55,7 @@
|
|
55
55
|
color: #fff;
|
56
56
|
font-weight: bold;
|
57
57
|
}
|
58
|
+
.tri_icon:hover + .comment {
|
59
|
+
display: block;
|
60
|
+
}
|
58
61
|
```
|
1
回答をうけやってみたことを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,4 +7,52 @@
|
|
7
7
|
http://www.css-lecture.com/log/javascript/017.html
|
8
8
|
http://js.crap.jp/book/chapter2/icon-effect.html
|
9
9
|
なんとかcssとjqueryでToolTipsは可能のようだが、onMouseするための三角の印
|
10
|
-
をどのようにHTMLのtable内に配置したらいいのかが不明である
|
10
|
+
をどのようにHTMLのtable内に配置したらいいのかが不明である
|
11
|
+
|
12
|
+
#回答を受けてやってみたこと
|
13
|
+
■問題点
|
14
|
+
セル内で、赤色の三角よりやや左でonMouseしたとき
|
15
|
+
ポップアップした部分が点滅して表示されます。
|
16
|
+
|
17
|
+
```HTML
|
18
|
+
<th style="margin-top:0px;padding-top:0px;padding-right:0px;" >
|
19
|
+
<div class="content">
|
20
|
+
<div class="tri_icon">
|
21
|
+
</div>
|
22
|
+
<div class="comment">コメントです </div>
|
23
|
+
</div>
|
24
|
+
セル内の文字列
|
25
|
+
</th>
|
26
|
+
```
|
27
|
+
|
28
|
+
```CSS
|
29
|
+
.comment{
|
30
|
+
width: 100px;
|
31
|
+
/* height: 80px; */
|
32
|
+
/* background: yellow; */
|
33
|
+
position: relative;
|
34
|
+
z-index: 1;
|
35
|
+
}
|
36
|
+
.tri_icon{
|
37
|
+
position: inherit;
|
38
|
+
z-index: 2;
|
39
|
+
top: 0;
|
40
|
+
left: calc(100% - 20px);
|
41
|
+
/* border-top: 10px solid red; */
|
42
|
+
border-bottom: 10px solid transparent;
|
43
|
+
border-left: 10px solid transparent;
|
44
|
+
border-right: 10px solid red;
|
45
|
+
}
|
46
|
+
.comment {
|
47
|
+
display: none;
|
48
|
+
width: 200px;
|
49
|
+
position: absolute;
|
50
|
+
top: 120px;
|
51
|
+
left: 250px;
|
52
|
+
padding: 16px;
|
53
|
+
border-radius: 5px;
|
54
|
+
background: #33cc99;
|
55
|
+
color: #fff;
|
56
|
+
font-weight: bold;
|
57
|
+
}
|
58
|
+
```
|