文章详情页
css3 - css @keyframe 能带小数吗
浏览:175日期: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. jupyter-notebook - Mac下启动jupyter notebook后没有Python的选项?2. javascript - 求一款靠谱点的移动端图片查看器插件,老司机速进!3. javascript - angular左右滑动如何切换路由状态,????4. css3的transform问题5. 数据库创建失败6. 百度地图api - Android 百度地图点击线路图的问题?7. javascript - 如何在外部点击,跳转到网页后,显示指定的模块。8. android自带时钟应用的这个效果是怎么做的9. 这是什么情况???10. mysql sql where id in(25,12,87) 结果集如何用按照 25 12 87排序?
排行榜

网公网安备