我在和elm-css玩。大多数事情都像我期望的那样工作。但是我不能给Css.opacity函数一个正确的值。
以下是我尝试过的方法:
Css.opacity 0.5这给出了错误:
Function `opacity` is expecting the argument to be:
Css.Number compatible
But it is:
FloatCss.Number是以下形式的类型别名:
type alias Number compatible =
{ compatible | value : String, number : Compatible }但是我不知道如何为Css.opacity函数创建一个有效值...
https://stackoverflow.com/questions/44521171
复制相似问题