Javascript Opentip样式不使用';行不通
我使用并尝试使用自定义样式设置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.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
}