77 篇博文 含有标签「Fullstack」
查看所有标签Kubernetes 的基本架构

Docker 镜像和容器常用命令

HTTP Request Methods
TypeScript Enum
枚举(Enum)类型经常被用于取值在一定范围内的场景,比如一周只能有七天,角色权限设计等。枚举类型变量使用enum
字段来定义,枚举成员的值可以是数字或者字符串,并且枚举成员是只读的。
枚举按照类型划分,主要分为以下三种:
TypeScript Basic Types
Nginx 基础命令

CSS 像素探讨
物理像素与独立像素
px 像素(Pixel),相对长度单位。本来 px 还是很好理解的,但是由于 Retina 屏让 px 变得扑所迷离,也是在移动端 Web 开发的时候不得不跨越的一个坎。我们先了解一下两个概念:
- 物理像素(实际像素):即小格子,是各个厂家所宣称的屏幕分辨率,比如:2880x1800,Retina 屏所说的像素就是物理实际像素。
- 独立像素: 即大格子,是 JS/CSS 所认为的像素
- 非 Retina 屏
独立像素 = 物理像素
- Retina 屏
独立像素 < 物理像素
- 非 Retina 屏
Responsive & Adaptive Design
Online demo: http://www.liquidapsive.com
Basic Concept
Before introduction on responsive and adaptive design, let's start by Static and Liquid which are basis of responsive and adaptive design.
Static
Static layouts are the traditional web: one design that sits in the center of the page and requires horizontal scrolling if the window is too small for it. M dot sites (m. site is a website that's specifically designed for mobile devices, and exists on a separate subdomain) are the traditional answer to this, providing a wholly separate site for a lower resolution - and all the work of creating a separate site.