Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Opentip样式不使用';行不通_Javascript_Jquery_Coffeescript_Opentip - Fatal编程技术网

Javascript Opentip样式不使用';行不通

Javascript Opentip样式不使用';行不通,javascript,jquery,coffeescript,opentip,Javascript,Jquery,Coffeescript,Opentip,我使用并尝试使用自定义样式设置opentip的样式 这是我在咖啡里的密码 Opentip.styles.orangetip = { stem: true, borderColor: "#ffa358", borderWidth: "50", background: "#ffa358", fixed: true, stemLength: "10" } 我甚至使用这个块将我的样式设置为默认设置,但它仍然不起作用 Opentip.defaultStyle = "oran

我使用并尝试使用自定义样式设置opentip的样式

这是我在咖啡里的密码

Opentip.styles.orangetip = { 
  stem: true,
  borderColor: "#ffa358",
  borderWidth: "50",
  background: "#ffa358",
  fixed: true,
  stemLength: "10"
  }
我甚至使用这个块将我的样式设置为默认设置,但它仍然不起作用

Opentip.defaultStyle = "orangetip"
这是我调用样式的脚本

tip1 = new Opentip("#testong", "Optional content", { 
  style: "orangetip", 
  showOn: "mouseover"
})
样式不加载,但showOn正在工作。例如,如果我将“mouseover”更改为“click”,容器将显示为click,而不是悬停


有人知道为什么这个样式不能加载吗?谢谢。我已经找到答案了

问题是因为我使用“”表示整数值

因此,它必须是:

Opentip.styles.orangetip = { 
  stem: true,
  borderColor: "#ffa358",
  borderWidth: 50,
  background: "#ffa358",
  fixed: true,
  stemLength: 10
}

我已经找到了答案

问题是因为我使用“”表示整数值

因此,它必须是:

Opentip.styles.orangetip = { 
  stem: true,
  borderColor: "#ffa358",
  borderWidth: 50,
  background: "#ffa358",
  fixed: true,
  stemLength: 10
}