文章详情页
css3 - css @keyframe 能带小数吗
浏览:132日期: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 下面创建的IMAGE 他们的 ID 一样?这个是怎么回事????2. 在应用配置文件 app.php 中找不到’route_check_cache’配置项3. html按键开关如何提交我想需要的值到数据库4. mysql取模分表与分表5. gvim - 谁有vim里CSS的Indent文件, 能缩进@media里面的6. HTML 5输入框只能输入汉字、字母、数字、标点符号?正则如何写?7. 跟着课件一模一样的操作使用tp6,出现了错误8. PHP类属性声明?9. objective-c - ios 怎么实现微信联系列表 最好是swift10. javascript - 请教如何获取百度贴吧新增的两个加密参数
排行榜
