文章详情页
css3 - css @keyframe 能带小数吗
浏览:161日期: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. mysql-配置 - MySQL错误,时不时自动挂掉,无法启动2. Java IO流-InputStream是抽象类,也能调方法?(如图)3. ,我写的代码哪里出错了?为什么就是显示不出来peter?4. node.js - session怎么存到cookie,然后服务器重启后还能获取。数据库不用mongodb或redis,数据库是mysql5. 这是什么情况???6. docker不显示端口映射呢?7. Ant design vue中的联动选择取消操作8. 关于layuiadmin中表格按钮提交问题求解!!!!9. layer.alert(’请输入用户名’,{icon:2})无法弹出窗口,是哪个包没引进来?10. node.js - mysql如何通过knex查询今天和七天内的汇总数据
排行榜

网公网安备