質問編集履歴
2
cssタグ修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```html
|
20
20
|
<body>
|
21
|
-
<ul class="
|
21
|
+
<ul class="grid_area">
|
22
22
|
<li><img src="http://placehold.it/540x540/27709b/ffffff/?text=[No1]"></li>
|
23
23
|
<li><img src="http://placehold.it/540x540/27709b/ffffff/?text=[No2]"></li>
|
24
24
|
<li><img src="http://placehold.it/540x540/27709b/ffffff/?text=[No3]"></li>
|
@@ -37,7 +37,7 @@
|
|
37
37
|
margin:0;
|
38
38
|
}
|
39
39
|
|
40
|
-
ul.
|
40
|
+
ul.grid_area {
|
41
41
|
width: 1000px;
|
42
42
|
margin:0 auto;
|
43
43
|
display: grid;
|
@@ -48,46 +48,46 @@
|
|
48
48
|
/*grid-auto-rows: minmax(100px, auto);*/
|
49
49
|
list-style: none;
|
50
50
|
}
|
51
|
-
ul.
|
51
|
+
ul.grid_area li{
|
52
52
|
background: #ccc;
|
53
53
|
}
|
54
|
-
ul.
|
54
|
+
ul.grid_area li img{
|
55
55
|
max-width: 100%;display: block;
|
56
56
|
}
|
57
57
|
|
58
58
|
|
59
59
|
/*IE10*/
|
60
60
|
@media all and (-ms-high-contrast:none) {
|
61
|
-
ul.
|
61
|
+
ul.grid_area li {
|
62
62
|
margin: 5px;
|
63
63
|
}
|
64
64
|
}
|
65
65
|
|
66
66
|
/*IE11*/
|
67
67
|
@media all and (-ms-high-contrast:none) {
|
68
|
-
*::-ms-backdrop, ul.
|
68
|
+
*::-ms-backdrop, ul.grid_area li {
|
69
69
|
margin: 5px;
|
70
70
|
}
|
71
71
|
}
|
72
72
|
|
73
73
|
/*EDGE*/
|
74
|
-
_:-ms-lang(x), _::-webkit-meter-bar,ul.
|
74
|
+
_:-ms-lang(x), _::-webkit-meter-bar,ul.grid_area li {
|
75
75
|
margin: 5px;
|
76
76
|
}
|
77
77
|
|
78
|
-
li:nth-child(1) {
|
78
|
+
ul.grid_area li:nth-child(1) {
|
79
79
|
grid-column: 1;
|
80
80
|
-ms-grid-column: 1;
|
81
81
|
grid-row: 1;
|
82
82
|
-ms-grid-row: 1;
|
83
83
|
}
|
84
|
-
li:nth-child(2) {
|
84
|
+
ul.grid_area li:nth-child(2) {
|
85
85
|
grid-column: 2;
|
86
86
|
-ms-grid-column: 2;
|
87
87
|
grid-row: 1;
|
88
88
|
-ms-grid-row: 1;
|
89
89
|
}
|
90
|
-
li:nth-child(3) {
|
90
|
+
ul.grid_area li:nth-child(3) {
|
91
91
|
grid-column: 3/5;
|
92
92
|
-ms-grid-column: 3;
|
93
93
|
-ms-grid-row-span:2;
|
@@ -95,20 +95,20 @@
|
|
95
95
|
-ms-grid-row: 1;
|
96
96
|
-ms-grid-column-span:2;
|
97
97
|
}
|
98
|
-
li:nth-child(4) {
|
98
|
+
ul.grid_area li:nth-child(4) {
|
99
99
|
grid-column: 5;
|
100
100
|
-ms-grid-column: 5;
|
101
101
|
grid-row: 1;
|
102
102
|
-ms-grid-row: 1;
|
103
103
|
}
|
104
|
-
li:nth-child(5) {
|
104
|
+
ul.grid_area li:nth-child(5) {
|
105
105
|
grid-column: 6;
|
106
106
|
-ms-grid-column: 6;
|
107
107
|
grid-row: 1;
|
108
108
|
-ms-grid-row: 1;
|
109
109
|
|
110
110
|
}
|
111
|
-
li:nth-child(6) {
|
111
|
+
ul.grid_area li:nth-child(6) {
|
112
112
|
grid-column: 1/3;
|
113
113
|
-ms-grid-column: 1;
|
114
114
|
-ms-grid-column-span:2;
|
@@ -116,19 +116,19 @@
|
|
116
116
|
-ms-grid-row: 2;
|
117
117
|
-ms-grid-row-span:2;
|
118
118
|
}
|
119
|
-
li:nth-child(7) {
|
119
|
+
ul.grid_area li:nth-child(7) {
|
120
120
|
grid-column: 3;
|
121
121
|
-ms-grid-column: 3;
|
122
122
|
grid-row: 3;
|
123
123
|
-ms-grid-row: 3;
|
124
124
|
}
|
125
|
-
li:nth-child(8) {
|
125
|
+
ul.grid_area li:nth-child(8) {
|
126
126
|
grid-column: 4;
|
127
127
|
-ms-grid-column: 4;
|
128
128
|
grid-row: 3;
|
129
129
|
-ms-grid-row: 3;
|
130
130
|
}
|
131
|
-
li:nth-child(9) {
|
131
|
+
ul.grid_area li:nth-child(9) {
|
132
132
|
grid-column: 5/7;
|
133
133
|
-ms-grid-column: 5;
|
134
134
|
-ms-grid-row-span:2;
|
@@ -136,10 +136,6 @@
|
|
136
136
|
-ms-grid-row: 2;
|
137
137
|
-ms-grid-column-span:2;
|
138
138
|
}
|
139
|
-
li:nth-child(10) {
|
140
|
-
/*grid-column: 2;*/
|
141
|
-
/*grid-row: 3;*/
|
142
|
-
}
|
143
139
|
```
|
144
140
|
|
145
141
|
###発生している問題
|
1
タイトル修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
css グリッドレイアウトを
|
1
|
+
css グリッドレイアウト(display: grid;)をIE10/IE11でも対応させるためにはどうすればよいでしょうか?
|
body
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
●対応したいブラウザ chorome,firefox,safari,Edge,IE11
|
4
4
|
|
5
5
|

|
6
|
-
|
7
6
|
cssグリッドレイアウトを下記の記事を参考に設置してみました。
|
8
7
|
[CSS Grid Layout を極める!(場面別編)](http://qiita.com/kura07/items/486c19045aab8090d6d9)
|
9
8
|
|