文章詳情頁
css3 - css @keyframe 能帶小數(shù)嗎
瀏覽:110日期:2023-07-29 18:11:15
問題描述
比如 10.3% 如果可以精確度是多少?
問題解答
回答1:可以,但是最多只能保持2為小數(shù)點。
@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上的相關(guān)鏈接:
Is it allowed to use any decimal value in CSS keyframe animations?
Can you use more than a whole number with @keyframe percents?
標簽:
CSS
相關(guān)文章:
1. python - scrapy url去重2. Python從URL中提取域名3. node.js - 微信小程序websocket連接問題4. 實現(xiàn)bing搜索工具urlAPI提交5. Python中使用超長的List導致內(nèi)存占用過大6. python - Django有哪些成功項目?7. python執(zhí)行cmd命令,怎么讓他執(zhí)行類似Ctrl+C效果將其結(jié)束命令?8. MySQL主鍵沖突時的更新操作和替換操作在功能上有什么差別(如圖)9. 數(shù)據(jù)庫 - Mysql的存儲過程真的是個坑!求助下面的存儲過程哪里錯啦,實在是找不到哪里的問題了。10. 鏈接圖片時,鏈接不成功
排行榜

熱門標簽