久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(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)文章:
主站蜘蛛池模板: 兴化市| 上栗县| 迁安市| 白银市| 嵩明县| 岫岩| 双流县| 镇巴县| 渭源县| 宝山区| 诏安县| 长垣县| 桃源县| 襄城县| 通河县| 缙云县| 互助| 治多县| 渝北区| 辽阳县| 莎车县| 南京市| 乌兰县| 怀安县| 百色市| 客服| 京山县| 旬邑县| 东至县| 横山县| 精河县| 衡水市| 邢台市| 西峡县| 睢宁县| 江源县| 鄂尔多斯市| 历史| 台北县| 萨嘎县| 祁东县|