如何向上移动"内容"和"右"块响应?问题是我无法使用子嵌套网格.我不需要hacks:没有margin-top因为header可以是不同的高度.没有javascript.只有纯CSS.如果可能的话.
现在我的标记看起来像这样:
.wrapper {
border: 1px solid red;
display: grid;
grid-template-columns: 1fr 2fr 1fr;
grid-template-areas:
"aside header header"
"left content right";
grid-gap: 15px;
}
.header, .aside, .left, .content, .right {
border: 1px solid black;
padding: 10px;
}
.header {
grid-area: header;
height: 30px; /* in real case it's responsive height */
}
.aside {
grid-area: aside;
height: 80px; /* in real case it's responsive height */
}
.left {
grid-area: left;
}
.content {
grid-area: content;
background: yellow;
}
.right …
Run Code Online (Sandbox Code Playgroud)如何使用 laravel 迁移到 MySQL 添加小整数列?我以为这段代码
$table->addColumn('tinyInteger', 'birth_day', ['lenght' => 2]);
但它创建了 TINYINT(4) 列。我不知道如何解决这个问题。请不要问我为什么只有一天,而不是完整的日期。这是应用程序的业务逻辑。
如何删除gulp clean-css中的特殊注释?
.pipe(cleancss({specialComments: 0}))
Run Code Online (Sandbox Code Playgroud)
似乎没有效果