0

初めてカラーボックスを使用していますが、助けが必要です。正しいフォルダにファイルがあります。だから私は問題が何であるか分かりません。

私のコードは次のとおりです。

<!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" />

 <link href="colorbox.css" rel="stylesheet" type="text/css" />

        <script src="jquery.colorbox-min.js"></script>

</head>
<title>Untitled Document</title>

<body>
<!--JQuery library-->
<a href="http://jquery.com/">jQuery</a>
    <script src="jquery.js"></script>
    <script>
      var foo = "bar";
    </script>


<!--Colorbox Call-->



        <a class='gallery'     href='images/DSC_0114.JPG'>Photo_1</a>
        <a class='gallery'     href='images/money2.jpg'>Photo_2</a>
        <a class='gallery'     href='images/money2.jpg'>Photo_3</a>

        <script>
            jQuery(document).ready(function() {
            jQuery('a.gallery').colorbox();
            });;
        </script>

</body>

クラス "box" id "box" の内容がここに入る

私は初心者なので、あなたが思うすべてを指摘してください!=)

4

1 に答える 1

1

jqueryをロードする前にカラーボックスをロードしています。それは逆である必要があります。

<script src="jquery.js"></script>
<script src="jquery.colorbox-min.js"></script>
于 2013-01-16T22:04:01.290 に答える