国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

css3 - css @keyframe 能帶小數嗎

瀏覽:124日期: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
相關文章:
主站蜘蛛池模板: 江孜县| 锡林浩特市| 浦东新区| 普安县| 德阳市| 阿拉尔市| 天等县| 瓦房店市| 阜新| 平遥县| 山西省| 克什克腾旗| 庆云县| 建平县| 平邑县| 海阳市| 武城县| 孝昌县| 得荣县| 柏乡县| 洞口县| 德惠市| 博客| 宜兴市| 广昌县| 闵行区| 岳普湖县| 资中县| 浏阳市| 武城县| 广南县| 西乌珠穆沁旗| 桃源县| 白河县| 芒康县| 乐清市| 牡丹江市| 哈巴河县| 长白| 遂溪县| 衡山县|