質問編集履歴
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
※divにidは設定しません
|
5
5
|
|
6
6
|
```ここに言語を入力
|
7
|
+
|
8
|
+
親から実行するスクリプト
|
7
9
|
<script>
|
8
10
|
window.onload=function(){
|
9
11
|
iframe=document.createElement('iframe');
|
@@ -20,14 +22,16 @@
|
|
20
22
|
|
21
23
|
}
|
22
24
|
</script>
|
25
|
+
```
|
23
26
|
|
27
|
+
```ここに言語を入力
|
24
28
|
iframe child.phpの中身
|
25
29
|
|
26
30
|
<style>
|
27
31
|
div{
|
28
32
|
width:30px;
|
29
33
|
height:30px;
|
30
|
-
background-image: url('
|
34
|
+
background-image: url('https://画像ファイル');
|
31
35
|
background-repeat:no-repeat;
|
32
36
|
background-size:contain;
|
33
37
|
background-position:left;
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,9 +22,21 @@
|
|
22
22
|
</script>
|
23
23
|
|
24
24
|
iframe child.phpの中身
|
25
|
-
<div style="width:30px;height:30px;background-image: url('~.jpg');background-repeat:no-repeat;background-size:contain;background-position:left;"></div>
|
26
|
-
<div style="width:30px;height:30px;background-image: url('~.jpg');background-repeat:no-repeat;background-size:contain;background-position:left;"></div>
|
27
|
-
<div style="width:30px;height:30px;background-image: url('~.jpg');background-repeat:no-repeat;background-size:contain;background-position:left;"></div>
|
28
|
-
<div style="width:30px;height:30px;background-image: url('~.jpg');background-repeat:no-repeat;background-size:contain;background-position:left;"></div>
|
29
25
|
|
26
|
+
<style>
|
27
|
+
div{
|
28
|
+
width:30px;
|
29
|
+
height:30px;
|
30
|
+
background-image: url('~.jpg');
|
31
|
+
background-repeat:no-repeat;
|
32
|
+
background-size:contain;
|
33
|
+
background-position:left;
|
34
|
+
}
|
35
|
+
</style>
|
36
|
+
|
37
|
+
<div></div>
|
38
|
+
<div></div>
|
39
|
+
<div></div>
|
40
|
+
<div></div>
|
41
|
+
<div></div>
|
30
42
|
```
|