感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body>
<h1>Grid</h1>
<div class="container">
<div class="top">Top</div>
<div class="center">
<div class="left">Left</div>
<div class="right">Right</div>
</div>
<div class="bottom">Bottom</div>
</body>
</html>
输入 JavaScript 代码……
xxxxxxxxxx
.container{
display: grid;
grid-template-rows: 50px 2px auto 2px 20px;
height: 100vh;
border: solid red;
}
.top {
grid-column: 1;
grid-row: 1;
height: 50px;
border: solid 1px green;
.center {
grid-row: 3;
height: 100%;
grid-template-columns: 200px 5px auto;
.left {
width: 200px;
border: solid 1px blue;
.right {
grid-column: 3;
.bottom {
grid-row: 4;
height: 20px;