我确定这很简单。我已经获得了colorbox以前的工作,但是当我开始在一个新的网站上尝试它时,它将无法加载!Colorbox无法加载 - 简单的代码。
我有jquery和colorbox文件在同一个目录中,这个html文件以及colorbox.css和图像文件夹中的图像来自于例子2.我的意思是,它只是应该加载文档时的颜色框准备好了,但事实并非如此。我一定会错过一些非常愚蠢的东西,请告诉我,如果你看到任何东西。谢谢!
PS。我确实有互联网连接从网站获取图书馆,我试过它只是链接到目录中的文件无济于事。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="colorbox.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="jquery.colorbox-min.js" type="text/javascript"></script>
</head>
<body>
MAITRE U
<script>
$(document).ready(function(){
$.colorbox({html:'<p>TEST TEST</p>'});
});
</script>
</body>
</html>
同样的问题:请参考这里。 –
linguini
2012-03-23 06:57:59