0
function login_callback() {
//alert("You are successfully logged in! Access Token: "+instaAccessToken);
var url = 'https://api.instagram.com/v1/users/self/media/recent/?access_token='+instaAccessToken;
$.get(url, function(data) {
$.each(data.data, function(i, item) {
var thumb = item.images.low_resolution.url;
var image = item.images.standard_resolution.url;
var str = '<div class="col-xs-6"><img data-src="'+image+'" src="'+thumb+'" class="thumbnail drag-image"/></div>';
$('#instafeed').append(str);
$('.drag-image').draggable({
helper: 'clone',
appendTo: 'body',
containment: 'document',////
refreshPositions: true,
stop: function(event,ui) {
},
drag: function(event, ui) {
handleDrag(event,ui);
}
});
});
},'jsonp');
這是我的jQuery函數的圖像拖動到畫布上。但是,拖動圖像時,會顯示爲原始圖像大小。拖動到畫布時如何定義圖像大小。