我试图用 Binding.scala 声明一些嵌入式 css
import com.thoughtworks.binding._, Binding._
import org.scalajs.dom._
@dom def css = <style>
body {
background-color: lightblue;
}
</style>
dom.render(document.head, css)
但是,我收到错误消息:
ScalaFiddle.scala:6: error: not found: type lightblue
background-color: lightblue;
^
ScalaFiddle.scala:6: error: not found: value background
background-color: lightblue;
^
ScalaFiddle.scala:6: error: not found: value color
background-color: lightblue;
^
我该如何解决?