0

当我单击它时,我的 Fancybox 表单不会触发。我确定我正确地从 Fancybox 复制了源代码。我只需要帮助弄清楚为什么它不会触发。我更新了 jquery,但这似乎仍然没有帮助。我从这里得到源代码;只需向下滚动一点,直到您看到内联和 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>
4

1 回答 1

0

首先,您需要jquery.fancybox-1.3.4.jsjquery.js

于 2013-10-04T02:29:32.490 回答