超链接不能正常显示的问题

This commit is contained in:
ouyangxuhua 2016-02-26 16:13:14 +08:00
parent 991613d760
commit 8784c7cec6
1 changed files with 2 additions and 1 deletions

View File

@ -1013,8 +1013,9 @@ function showNormalImage(id) {
var image=$(description_images[i]);
var element=$("<a></a>").attr("href",image.attr('src'));
image.wrap(element);
$(image).parent().colorbox({rel:'nofollow', close: "关闭", returnFocus: false});
}
$('#'+id+' a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); //有图片才将链接变为弹出框
//$('#'+id+' a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false}); //有图片才将链接变为弹出框
}
}