博客
关于我
前端基础知识学习FreeCodeCamp
阅读量:354 次
发布时间:2019-03-04

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

目录

教程

basic html and html5

Basic css

position

float
animation

Applied Visual design

Applied Accessibility

tabindex

responsive web design principles

Media Queries

img { max-width: 100%; height: auto; }
Make Typography Responsive: Viewport units
相对设备的高度或者宽度
和百分比的不同在于,百分比是相对父容器的。

css flexbox

flex container

flex items

flex container

display: flex

flex-direction
flex布局会占用原本的文档流吗?

在这里插入图片描述

justify-content: flex-start;
justify-content: center
justify-content: flex-end;
justify-content: space-around;
justify-content: space-between;

align-items

flex-start: aligns items to the start of the flex container. For rows, this aligns items to the top of the container. For columns, this aligns items to the left of the container.

flex-end: aligns items to the end of the flex container. For rows, this aligns items to the bottom of the container. For columns, this aligns items to the right of the container.
center: align items to the center. For rows, this vertically aligns items (equal space above and below the items). For columns, this horizontally aligns them (equal space to the left and right of the items).
stretch: stretch the items to fill the flex container. For example, rows items are stretched to fill the flex container top-to-bottom. This is the default value if no align-items value is specified.
baseline: align items to their baselines. Baseline is a text concept, think of it as the line that the letters sit on.

flex-wrap

nowrap
wrap 换行
wrap-reverse 逆向

Properties for the flex items

flex-shrink

当容器小的时候,可以给items指定收缩比例
When it’s used, it allows an item to shrink if the flex container is too small.在这里插入图片描述
flex-grow

flex-basis

The flex-basis property specifies the initial size of the item before CSS makes adjustments with flex-shrink or flex-grow.

css grid

grid 容齐的属性

display: grid;

Turn any HTML element into a grid container by setting its display property to grid. This gives you the ability to use all the other properties associated with CSS Grid.

grid-template-columns: 100px 100px 100px;

grid-template-rows: 50px 50px;
在这里插入图片描述

grid-column-gap 设置列之间空隙

在这里插入图片描述

grid-row-gap设置行之间的空隙

在这里插入图片描述

grid item的属性

grid-column:

the grid-column CSS property is a shorthand property for grid-column-start and grid-column-end specifying a grid item’s size and location within the grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.

grid-row

justify-self

align-self

其他

给每个区域起个名字

grid-template-areas

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

你可能感兴趣的文章
neuroph轻量级神经网络框架
查看>>
Neutron系列 : Neutron OVS OpenFlow 流表 和 L2 Population(7)
查看>>
NEW DATE()之参数传递
查看>>
New Relic——手机应用app开发达人的福利立即就到啦!
查看>>
new 一个button 然后dispose,最后这个button是null吗???
查看>>
next项目部署到服务器pm2进程守护
查看>>
nexus上传jar
查看>>
Nexus指南中的更新强调集成和透明度的重要性
查看>>
Nexus指南已经发布
查看>>
Nexus(1):Nexus的安装与配置
查看>>
NFinal学习笔记 02—NFinalBuild
查看>>
NFS
查看>>
NFS Server及Client配置与挂载详解
查看>>
NFS 服务配置篇
查看>>
NFS共享文件系统搭建
查看>>
nfs复习
查看>>
NFS安装配置
查看>>
NFS服务器配置-服务启动与停止
查看>>
NFS的安装以及windows/linux挂载linux网络文件系统NFS
查看>>
NFS的常用挂载参数
查看>>