文章詳情頁
css3 - css @keyframe 能帶小數(shù)嗎
瀏覽:183日期: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上的相關鏈接:
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. boot2docker無法啟動2. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””3. docker-compose中volumes的問題4. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.5. java - SSH框架中寫分頁時service層中不能注入分頁類6. nignx - docker內nginx 80端口被占用7. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?8. dockerfile - 為什么docker容器啟動不了?9. docker容器呢SSH為什么連不通呢?10. 關于docker下的nginx壓力測試
排行榜

熱門標簽
網公網安備