我想在页面加载时打开一个 div。我粘贴的代码在 ShadowBox 库中给了我一个 javascript 错误:'container is undefined'
我怎样才能做到这一点?
$(document).ready(function () {
Shadowbox.init({ skipSetup: true });
Shadowbox.open({
content: '#surveyDialog',
player: 'inline',
height: 450,
width: 500
});
});
<div id="surveyDialog" class="dialogWindowWrapper">
<h2>Hello!</h2>
</div>