博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[CSS] Get up and running with CSS Grid Layout
阅读量:6946 次
发布时间:2019-06-27

本文共 954 字,大约阅读时间需要 3 分钟。

We’ll discuss the display values pertinent to CSS Grid Layout – gridinline-grid, and subgrid. Then, let’s jump in at the deep end by putting together a simple grid layout in a flash.

 

  
JS Bin
Header
Section
Footer

 

.container {
display: grid; grid-gap: 5px; grid-template-areas: "header" "section" "aside-1" "aside-2" "footer";}@media (min-width: 700px) {
.container { grid-template-areas: "header header header" "aside-1 section aside-2" "footer footer footer"; }}/* All Grid Items */.container > * {
background-color: mediumseagreen; font-size: 80px;}header {
grid-area: header;}aside:nth-of-type(1) {
grid-area: aside-1;}section {
grid-area: section;}aside:nth-of-type(2) {
grid-area: aside-2;}footer {
grid-area: footer;}

 

转载地址:http://jhhnl.baihongyu.com/

你可能感兴趣的文章
C语言指针的初始化和赋值
查看>>
安卓开发笔记——关于照片墙的实现(完美缓存策略LruCache+DiskLruCache)
查看>>
定义和使用EL函数
查看>>
android edittext不弹出软键盘
查看>>
关于正则表达式 C#
查看>>
【原创视频教程】SqlServer2008视频教程[共9集]
查看>>
Ubuntu 14.04 启用休眠
查看>>
Android闹钟源代码
查看>>
const使用摘要
查看>>
1.cocos2dx 3.2环境结构
查看>>
你知道什么是Grunt么?
查看>>
Java堆栈详解
查看>>
Hadoop入门进阶课程6--MapReduce应用案例
查看>>
SQL Server 2014里的IO资源调控器
查看>>
.NET足球赛事资料数据库平台SmartLottery开源发布——全球足球联赛应有尽有
查看>>
Eamcs ditaa基于字符图形产生的图像上
查看>>
Only the original thread that created a view hierarchy can touch its views.
查看>>
LeetCode手记-Add Binary
查看>>
对DNSPOD添加域名解析的一些见解
查看>>
vim添加删除多行注释
查看>>