![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CSS3
loves小鱼儿
这个作者很懒,什么都没留下…
展开
-
animation和transition
1.animation animation与transition有几个相同的属性,duration、timing-function、delay; animation-name:animation需要指定动画的名字,这个是用来在@keyframes中指定执行动画的样式; animation-duration:动画的执行时间。单位为s(秒); animation-timing-function:动画类型原创 2016-09-22 22:16:09 · 439 阅读 · 0 评论 -
css3中单位px,em,rem,vh,vw,vmin,vmax的区别及浏览器支持情况
px:绝对单位,页面按精确像素展示em:相对单位,基准点为父节点字体的大小,如果自身定义了font-size按自身来计算(浏览器默认字体是16px),整个页面内1em不是一个固定的值。rem:相对单位,可理解为”root em”, 相对根节点html的字体大小来计算,CSS3新加属性,chrome/firefox/IE9+支持。(另外需注意chrome强制最小字体为12号,即使设置成 10px 最终转载 2016-09-26 13:37:55 · 464 阅读 · 0 评论