【发布时间】: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