미디어위키:Common.js: 두 판 사이의 차이
Resultofunion (토론 | 기여) 편집 요약 없음 |
Resultofunion (토론 | 기여) 편집 요약 없음 |
||
| 262번째 줄: | 262번째 줄: | ||
var ratio = $img.naturalWidth / $img.naturalHeight; | var ratio = $img.naturalWidth / $img.naturalHeight; | ||
var width = (ratio / totalRatio) * (totalWidth - 6 * lineMax) + 6; | |||
$elem.children[i].style.width = (width / totalWidth) * 100 + '%'; | |||
} | } | ||
} | } | ||
} | } | ||