CSS
后勇
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何用EM设置文本尺寸
深入讲解EM这个相对尺寸单位翻译 2016-11-29 17:05:57 · 1014 阅读 · 0 评论 -
web app 变革之rem
深入讲解如何用CSS的rem来做web app转载 2016-11-30 14:47:41 · 364 阅读 · 0 评论 -
用rem来做响应式开发
用CSS3的rem进行响应式开发转载 2016-11-30 15:40:35 · 326 阅读 · 0 评论 -
CSS layout fundamentals
Part 1: the box modelThe box modelThe 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 · 277 阅读 · 0 评论 -
CSS技巧心得记录
布局方式一、div垂直对齐1、子元素宽高已知待对齐的子元素宽高已知,父元素宽高会改变。解决方案:父元素设置相对定位(relative)。子元素设置绝对定位(absolute),向下移动50%高度再用负margin往上回移子元素高度的一半。2、子元素宽高未知待对齐的子元素宽高未知,父元素宽高会改变。解决方案:利用行内级元素垂直对齐属性。父元素设置空字符的伪元...原创 2019-08-13 14:42:18 · 152 阅读 · 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 · 180 阅读 · 0 评论
分享