文章詳情頁(yè)
css3 - css @keyframe 能帶小數(shù)嗎
瀏覽:118日期:2023-07-29 18:11:15
問(wèn)題描述
比如 10.3% 如果可以精確度是多少?
問(wèn)題解答
回答1:可以,但是最多只能保持2為小數(shù)點(diǎn)。
@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?
標(biāo)簽:
CSS
相關(guān)文章:
1. html5 - 這個(gè)代碼顯示功能如何實(shí)現(xiàn)?2. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問(wèn)題3. java - 關(guān)于File的問(wèn)題?4. java - instance method中 static后的<K>是什么意思?5. docker - 如何修改運(yùn)行中容器的配置6. 錯(cuò)誤:java.lang.NoSuchMethodError:org.objectweb.asm.ClassWriter。<init>(I)V7. python3.x - python連oanda的模擬交易api獲取json問(wèn)題第五問(wèn)8. javascript - QWebEngineView 如何爬 angular 的動(dòng)態(tài)數(shù)據(jù)?9. docker-machine添加一個(gè)已有的docker主機(jī)問(wèn)題10. 為什么我ping不通我的docker容器呢???
排行榜

熱門(mén)標(biāo)簽