下列是有关于如何在网格内插入图片后的定位代码
<style>
.box{
width: 600px;
height: 600px;
border: 1px solid #000;
display: grid;
/* 划分网格区域 */
grid-template-columns: repeat(3,200px);
grid-template-rows: repeat(3,200px);
grid-template-areas:
'a a a'
'. . b'
'. c c'
;
}
img{
opacity: 0.5;
}
.juchang{
/* 指定站哪个区域 */
grid-area: a;
}
.fang{
/* 指定站哪个区域 */
grid-area: b;
}
.chang{
/* 指定站哪个区域 */
grid-area: c;
}
</style>
</head>
<body>
<div class="box">
<div class="juchang">
<a href="">
<img width="600px" height="200px&