Notes写个人网站的注意事项边偏移transition和transform区别Flexbox practice code css-transitionNotes写个人网站的注意事项bem命名规范边偏移当一个元素设置position后, 一般top/bottom选一个, left/right选一个来定位relative: 元素按照默认布局进行定位 (不脱离文档流), 通过设置top、right、bottom、left属性,可以相对于元素在文档流中的位置进行偏移.absolute: absolute一般找最近的非static父级元素定位 (脱离文档流).transition和transform区别transition和transform在商业环境中较少使用Flexbox practice code