摘要: 方法一 :使用弹性布局 方法二 :CSS3 transform 属性 父级元素定位 子集元素加属性: position: absolute; top: 50%; transform: translateY(-50%); 方法三: 使用伪元素和vertical-align: middle; .pare 阅读全文
posted @ 2019-09-25 23:37 shansally 阅读(1144) 评论(0) 推荐(1) 编辑
摘要: animation-fill-mode 属性 属性规定动画在播放之前或之后,其动画效果是否可见。 js语法:object.style.animationFillMode=none animation-fill-mode : none | forwards | backwards | both;non 阅读全文
posted @ 2019-09-25 22:52 shansally 阅读(720) 评论(0) 推荐(1) 编辑