CSS
后勇
这个作者很懒,什么都没留下…
展开
-
如何用EM设置文本尺寸
深入讲解EM这个相对尺寸单位翻译 2016-11-29 17:05:57 · 901 阅读 · 0 评论 -
web app 变革之rem
深入讲解如何用CSS的rem来做web app转载 2016-11-30 14:47:41 · 308 阅读 · 0 评论 -
用rem来做响应式开发
用CSS3的rem进行响应式开发转载 2016-11-30 15:40:35 · 253 阅读 · 0 评论 -
CSS layout fundamentals
Part 1: the box model The box model The foundation of CSS layouts is thebox model. Everything in CSS is a rectangular box. Going from the outside, each box has (optionally): margins that separ...转载 2019-05-22 11:54:21 · 184 阅读 · 0 评论 -
CSS技巧心得记录
布局方式 一、div垂直对齐 1、子元素宽高已知 待对齐的子元素宽高已知,父元素宽高会改变。 解决方案:父元素设置相对定位(relative)。子元素设置绝对定位(absolute),向下移动50%高度再用负margin往上回移子元素高度的一半。 2、子元素宽高未知 待对齐的子元素宽高未知,父元素宽高会改变。 解决方案:利用行内级元素垂直对齐属性。父元素设置空字符的伪元...原创 2019-08-13 14:42:18 · 106 阅读 · 0 评论 -
Reasons not to use IDs in CSS
Sometimes when I’m reviewing code, I advise a colleague not to use IDs for CSS style selectors, and inevitably get asked why. Like standing in queues, making a cup of tea or applying a full face of ma...转载 2019-08-26 16:38:36 · 108 阅读 · 0 评论