3
angualr css grid 显示问题
source link: https://www.v2ex.com/t/910322
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
body {
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: repeat(15, 1fr);
gap: 0 0;
}
header {
grid-area: 1 / 1 / 2 / 13;
width: 100%;
position: sticky;
top: 0;
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: 70px;
grid-template-areas: ". home notes group . search search . . login signup .";
}
但是 header 元素堆积在一个格子里面,我希望 header 元素占据第一行
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK