很简单,用到了onload事件。
该事件在图片加载完毕后触发。
<img src="{$sl.icon}" onload="takeBorder(this)">
function takeBorder(obj){ obj.style.borderWidth = 0; }
很简单,用到了onload事件。
该事件在图片加载完毕后触发。
<img src="{$sl.icon}" onload="takeBorder(this)">
function takeBorder(obj){ obj.style.borderWidth = 0; }
转载于:https://www.cnblogs.com/hongchenok/archive/2012/06/27/2565442.html