我正在尝试在 google chrome 中使用 shadowbox 3.0.3
我正进入(状态:
镀铬
shadowbox.js:17 未捕获类型错误:无法读取未定义的属性“样式”
在火狐中
F 未定义 g.find=(function(){var aD=/((?:((?:(...()}};g.skin=k;T.Shadowbox=g})(window); shadowbox.js(第 17 行)
似乎在 IE 中工作正常
我的代码如下:
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<script src="shadowbox.js"></script>
<link href="shadowbox.css" rel="stylesheet"/>
<script>
$(function() {
Shadowbox.init({skipSetup: true});
// open a welcome message as soon as the window loads
Shadowbox.open({
content: '<div id="welcome-msg">Welcome to my website!</div>',
player: "html",
title: "Welcome",
height: 350,
width: 350
});
})
</script>
</head>
<body>
</body>
</html>
什么会导致这个?