HTML
1<body> 2 <div class="container"> 3 <div class="box1">1</div> 4 <div class="box2">2</div> 5 <div class="box3">3</div> 6 <div class="box4">4</div> 7 <div class="box5">5</div> 8 </div> 9 </body>
CSS
1.container{ 2 display: grid; 3 4 grid-template-columns: repeat(5,100px); 5 grid-template-rows: repeat(4,100px); 6 7 grid-template-areas: 8 "p p p y y" 9 "r r r y y" 10 "b b r y y" 11 "b b g y y"; 12} 13.box1{ 14 background-color: pink; 15 grid-area: p; 16} 17.box2{ 18 background-color: blue; 19 grid-area: b; 20} 21.box3{ 22 background-color: red; 23 grid-area: r; 24} 25.box4{ 26 background-color: green; 27 grid-area: g; 28} 29.box5{ 30 background-color: yellow; 31 grid-area: y: 32} 33 34
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/03/25 12:04
2020/03/26 20:39
2020/03/27 00:23
2020/03/27 00:59
2020/03/27 01:01