0
我似乎無法讓我非常基本的ColorBox示例工作。jquery ColorBox - 內聯內容只顯示在第一次
這是一個簡單的內聯div,第一次正確顯示,但之後沒有顯示任何內容(colorbox顯示非常小 - 檢查顯示沒有內容)。
<html>
<head>
<title>Colorbox Test</title>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<!-- Add colorbox -->
<link rel="stylesheet" type="text/css" href="css/colorbox.css">
<script type="text/javascript" src="js/jquery.colorbox-min.js"></script>
<script type="text/javascript">
$(function(){
$('a.enter').colorbox({inline:true});
});
</script>
</head>
<body>
<div class="wrapper">
<a class="enter" href="#entrydiv">Click To Enter</a>
</div>
<div style="display:none">
<div id="entrydiv">
<h2>Enter your details below</h2>
</div>
</div>
</body>
</html>
任何人都可以給我任何指針。我已經瀏覽了關於SO的大多數相關問題,而且他們中的任何一個看起來都不完全一樣。
有兩個Safari和Firefox測試在Mac
感謝
你可以給演示?它正在進行演示。 http://www.jacklmoore.com/colorbox/example2/ –
我的版本的colorbox.js必須有問題。當我在JSBin中創建演示並鏈接到github上的最新版本時,問題就停止了。謝謝 – Mark