文章详情页
css3 - css @keyframe 能带小数吗
浏览:197日期: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. nginx - ngnix问题2. javascript - requestAnimationFrame如何控制帧速?3. python2.7 - python 函数或者类 代码的执行顺序4. javascript - immutable配合react提升性能?5. android glide asbitmap 在baseadpter中的问题6. PHP类封装的插入数据,总是插入不成功,返回false;7. mysql 慢查询日志中的内容查看问题8. 求救一下,用新版的phpstudy,数据库过段时间会消失是什么情况?9. css - 写页面遇到个布局问题,求大佬们帮解答,在线等,急!~10. php - 微信开发验证服务器有效性
排行榜

网公网安备