文章詳情頁
css3 - css @keyframe 能帶小數(shù)嗎
瀏覽:127日期:2023-07-29 18:11:15
問題描述
比如 10.3% 如果可以精確度是多少?
問題解答
回答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. javascript - vue監(jiān)聽data中的某一數(shù)組的某一項(xiàng)2. 為什么我寫的PHP不行3. html - css布局問題,背景用用div畫的三角形是否用absolute與z-index來定位與規(guī)定在下方是否是個(gè)好方案4. 我 想好好學(xué)精通一門技術(shù),大家用的走過的路,幫我指點(diǎn)指點(diǎn)唄 讓我少走了彎路和坑的苦 ,自學(xué),自己摸5. 正則表達(dá)式 - nginx 正則,如何匹配不以/結(jié)尾且不以.xml .html .htm結(jié)尾6. Android 高德地圖如何移除添加的某個(gè)marker?7. 淺談vue生命周期共有幾個(gè)階段?分別是什么?8. index.php錯(cuò)誤,求指點(diǎn)9. java - web端百度網(wǎng)盤的一個(gè)操作為什么要分兩次請求服務(wù)器, 有什么好處嗎10. html5 - 如何實(shí)現(xiàn)圖中的刻度漸變效果?
排行榜

熱門標(biāo)簽