立方体の下にテキストを表示しようとしています....フィドルで一人で作業するとコードは正常に機能します....しかし、プロジェクトに配置すると機能しません....方法を教えてくださいdata-text="Cube1"値を表示するには.....
作業コードhttp://jsfiddle.net/PKwDp/4/
コードが機能しないhttp://jsfiddle.net/rajkumart08/EDKkg/1/
$('document').ready(function () {
window.setTimeout(function () {
$('.cubeCell').each(function () {
var htmlText = $(this).attr('data-text');
$(this).append('<div class="cubeTextStyle">'+htmlText+'</div>');
});
}, 600);
});
<div data-text="Cube1" data-caption="<a style='margin-left: 92px; font-size: 18px; color: grey;' href='http://www.w3schools.com/' >Create</a> <div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >View/Edit</a> </div> <a style='margin-left: 92px; font-size: 18px; color: grey;' >Labels</a>" data-image="http://www.defie.co/designerImages/inventoryControl.png">testing</div>