[英]Opentip styling doesn't work
我使用opentip ,我尝试用自定义样式设置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”,则容器将显示单击,而不是悬停。
任何人都知道为什么风格不加载? 谢谢。
我已经找到了答案。
问题是因为我使用“”作为整数值。
所以,它必须是:
Opentip.styles.orangetip = {
stem: true,
borderColor: "#ffa358",
borderWidth: 50,
background: "#ffa358",
fixed: true,
stemLength: 10
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.