1
webjin 2015 年 6 月 13 日
还行吧
|
2
cctrv 2015 年 6 月 13 日
不知道你的 CSS 怎么写。
但是,应该是这样的。 src=id+".png"+"?"+id;(防缓存) CSS: width: 固定值px; height: auto; |
3
Exin OP @cctrv 这样写不行呢……
我最后用setAttribute('style','width:auto !important;height:auto !important;)以及一段获取原文件尺寸的js搞定的 |