【问题标题】:have problems with colorbox and jcropcolorbox 和 jcrop 有问题
【发布时间】:2011-02-05 00:13:04
【问题描述】:

在下面的代码中,颜色框正在工作并显示图像。当我尝试将 Jcrop 与其集成时,它没有。

<head runat="server">
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js">
    </script>

    <script src="../colorbox/colorbox/jquery.colorbox.js" type="text/javascript">
    </script>

    <script src="../jcrop/js/jquery.Jcrop.js" type="text/javascript">
    </script>

    <link href="../jcrop/css/jquery.Jcrop.css" rel="stylesheet" type="text/css" />
    <link href="../colorbox/example1/colorbox.css" rel="stylesheet" type="text/css" />

    <script>
        $(document).ready(function () {

        $(".example1").colorbox();
        $(document).bind('cbox_complete', function(){
        $('#colorbox .example1').Jcrop();
        });

        });
    </script>
</head>
<body>
    <p>
        <a href="../jcrop/demos/demo_files/flowers.jpg" class="example1">
            crop
        </a>
    </p>
</body>

【问题讨论】:

  • 请详细描述一下您所说的“它不起作用”是什么意思。指向演示问题的示例的链接也非常有用,可以是指向您网站的实时链接,也可以是jsfiddle.net

标签: javascript jquery colorbox jcrop


【解决方案1】:

将脚本文件删除到母版/父页面,现在应该可以工作了..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-31
    • 1970-01-01
    • 1970-01-01
    • 2012-12-16
    相关资源
    最近更新 更多