我確定這很簡單。我已經獲得了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