文章详情页
css3 - css @keyframe 能带小数吗
浏览:228日期: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. java - 使用 RedisTemplate 操作数据2. javascript - 如何使用nodejs 将.html 文件转化成canvas3. javascript - svg小白,想要在svg里面插入图片4. css3 - css line-height和font-size高度问题,谁能帮忙解释一下呢5. mysql - SELECT 多個資料表及多個欄位6. javascript - 粘贴一段带有图片和文字的内容,如何使用js实现获取图片并上传到服务器?7. 收缩页面显示的图片怎么写8. python - django 项目的 migrations 目录是否应该提交到 git9. css - Hexo next 主题 新增 自定义 Menus 字母怎么能首字母不自动大写?10. 怎么学好php
排行榜

网公网安备