1.如果你使用了base64,在<img中设置height=和宽,colorbox不会知道,所以会弹出0,0大小的框,在里边加上width和height
<img id="abc" src=base64的字符/>
var efg=document.getElementById('abc');
var a=efg.width;
var b=efg.height;
$.colorbox({
width:a,
height:b,
...
'/>"
});