回答編集履歴

1

コードを掲示

2017/01/26 08:00

投稿

Lhankor_Mhy
Lhankor_Mhy

スコア36140

test CHANGED
@@ -1 +1,35 @@
1
1
  [こんな感じでどうでしょうか](https://jsfiddle.net/k1zmLzm1/)
2
+
3
+ ```HTML
4
+
5
+ <img id="thumbnail" src="http://placehold.jp/150x150.png">
6
+
7
+ <img id="original" src="http://placehold.jp/150x150.png">
8
+
9
+ ```
10
+
11
+ ```CSS
12
+
13
+ #thumbnail{
14
+
15
+ width:50px;
16
+
17
+ }
18
+
19
+ #original{
20
+
21
+ position:absolute;
22
+
23
+ left:50%;
24
+
25
+ display:none;
26
+
27
+ }
28
+
29
+ #thumbnail:hover + #original{
30
+
31
+ display:inline;
32
+
33
+ }
34
+
35
+ ```