在网页中预览时,图片显示不出来,然后检查,图片的路径用单独的网页打开,就显示如截图那样的显示JS代码:setTimeout(function() { $("div").append("<div id=\"box\"><div class=\"slide\"><ul><li><a href=\"#\"><img src=\"D:\Program Files\FineReport_10.0\webapps\webroot\help\picture\NACKS-1-1.jpg\" alt=\"啊啊啊\"></a></li><li><a href=\"#\"><img src=\"D:\Program Files\FineReport_10.0\webapps\webroot\help\picture\NACKS-1-2.jpg\" alt=\"啊啊啊\"></a></li><li><a href=\"#\"><img src=\"D:\Program Files\FineReport_10.0\webapps\webroot\help\picture\NACKS-1-1.jpg\" alt=\"啊啊啊\"></a></li><li><a href=\"#\"><img src=\"D:\Program Files\FineReport_10.0\webapps\webroot\help\picture\NACKS-1-2.jpg\" alt=\"啊啊啊\"></a></li><li><a href=\"#\"><img src=\"D:\Program Files\FineReport_10.0\webapps\webroot\help\picture\NACKS-1-1.jpg\" alt=\"啊啊啊\"></a></li></ul><div class=\"arraw\"><a href=\"javascript:;\" class=\"next\"></a><a href=\"javascript:;\" class='prev'></a></div></div></div><script>var box = document.querySelector('#box');var slide = document.querySelector('.slide');var arraw = document.querySelector('.arraw');var lis = document.querySelectorAll('li');var json = ;var next = document.querySelector('.next');var prev = document.querySelector('.prev');var timer = null;var flag = true;move();run();function run(){clearInterval(timer);timer = setInterval(function(){if(flag == true){flag = false;move(true);}},500);}function move(x){if(x != undefined){if(x){json.push(json.shift());}else{json.unshift(json.pop());};};for(var i = 0; i<json.length; i++){animate(lis,{width: json.width,top: json.top,left: json.left,opacity: json.opacity,zIndex: json.z},function(){flag = true;})};}function animate(obj, json, callback){clearInterval(obj.timer);obj.timer = setInterval(function(){var stoped = true;for(var k in json){var leader = 0;if(k == 'opacity'){leader = Math.round(getStyle(obj, k)*100) || 100;}else {leader = parseInt(getStyle(obj, k)) || 0;};var step = (json-leader)/10;step = step > 0? Math.ceil(step) : Math.floor(step);leader = leader + step;if(k == 'opacity'){obj.style = leader/100;obj.style = 'alpha(opacity='+ leader +')';}else if(k == 'zIndex'){obj.style = json;console.log(666);}else{obj.style = leader + \"px\";}if(leader != json){stoped = false;}};if(stoped){clearInterval(obj.timer);callback && callback();};},50);};function getStyle(obj, attr){if(obj.currentStyle){return obj.currentStyle;}else{return window.getComputedStyle(obj, null);};};</script>") }, 20);