CSS 中有物理像素,也有逻辑像素。
为什么会有两种像素?
为什么移动设备的兴起,会使得能够区分这两种像素对开发者越来越重要?
在网页的布局设计中,有一种惯例已经被沿用了 20 年。
为什么会存在这些惯例?它们有什么道理?
为什么它们跟我们在阅读网页的时候的摆头动作有关?
在为非常规设备开发界面的时候,我们如何优雅地打破这一惯例?
我们用图形,用设备宽度逐渐缩窄的动画,来解释科技的演变对布局语言思维的影响。
There are "physical pixels" and "logical pixels" in CSS.
Why are there two different pixels?
Why understanding the difference between these two pixels is becoming important after the increase of mobile device usage?
There are layout conventions that have been used in web development for more than 20 years.
Why these conventions exist?
How does it have anything to do with the swinging movement of our head when reading?
How do we elegantly break this convention when adopting our interfaces for unorthodox devices?
We use graphics, and animations of how layout changes as the width of our screens shrink, to explore how the advance of technologies could change the way that layout languages work.
布局设计很好入门,但它并没有你想象的那么简单。
Layout design may be easy to get started, but not as simple as it seems.