上面最后那个反大括号是多余的
不是那个问题,因为我上面有包
<div idTag=" <?=$temp['id']?>" style="display:none" style="width:248px;height:140px;overflow:hidden;"> <input type="file" class="title" name="attachpic[]" onchange="showPic(event.srcElement)"/>&nbsp;&nbsp; <a href="#" onclick="recoverPic(event.srcElement)" idTag=" <?=temp['id']?>">取消删除原图 </a> </div> <img src="../image/ <?=$temp['filename']?>" width="248" height="140" idTag=" <?=$temp['id']?>" onclick="delPic(event.srcElement)"/> 
基本上肯定是这句的问题