文章详情页
css3 - css @keyframe 能带小数吗
浏览:136日期:2023-07-29 18:11:15
问题描述
比如 10.3% 如果可以精确度是多少?
问题解答
回答1:可以,但是最多只能保持2为小数点。
@keyframes myAnimation { 0% { height: 100px; } 33.3% { height: 120px; } 66.6% { height: 140px; } 100% { height: 200px; }}
When it comes to CSS it takes notice of percentages down to 2 decimal places and then stops. So you would be able to get 33.34% but not 33.3457% for use in your keyframes
SO上的相关链接:
Is it allowed to use any decimal value in CSS keyframe animations?
Can you use more than a whole number with @keyframe percents?
标签:
CSS
相关文章:
1. docker gitlab 如何git clone?2. docker-compose 为何找不到配置文件?3. docker images显示的镜像过多,狗眼被亮瞎了,怎么办?4. docker不显示端口映射呢?5. dockerfile - [docker build image失败- npm install]6. docker内创建jenkins访问另一个容器下的服务器问题7. angular.js - 如何从AngularJS迁移到Vue?8. docker 17.03 怎么配置 registry mirror ?9. docker 下面创建的IMAGE 他们的 ID 一样?这个是怎么回事????10. javascript - 如何申请blog.xxx.com 这种二级域名?
排行榜
