单击它时,我的Fancybox表单不会触发。我确定我正确地从Fancybox复制了源代码。我只是需要帮助弄清楚为什么它不会开火。我更新了jquery,但似乎仍然没有帮助。我从here获得了源代码;只需向下滚动一下,直到看到内联和ajax以及其他内联灯箱列表。我正在尝试为我的网站获取“内联”灯箱,但它不会触发。
Fancybox:http://fancyapps.com/fancybox/#examples(我正试图在网页底部附近获取“内联 - 自动检测宽度/高度”)
这是我试过的:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="/js/fancybox-1.3.4/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/fancybox-1.3.4/jquery.fancybox-1.3.4.js"></script>
<script type="text/javascript">
if ($(window).width() < 960) {
$('footer').css('padding', '20px');
}
</script>
</head>
<body>
<ul>
<li><a id="various1" href="#inline1" title="Lorem ipsum dolor sit amet">Inline - auto detect width / height</a></li>
</ul>
</body>
</html>
答案 0 :(得分:0)
首先,您需要在jquery.fancybox-1.3.4.js
jquery.js