반응형

How to Increase and Decrease Image Size Using JavaScript - StackHowTo
To increase and decrease image size. You can use JavaScript’s width or height property to proportionally increase or decrease the
stackhowto.com
-
오른쪽 정렬왼쪽 정렬가운데 정렬
-
- 삭제
css를 이용하여 그림 사이즈 조절이 가능합니다.
let imgTag = document.createElement('img');
imgTag.src = "/static/uploaded/"+fileName;
imgTag.alt = fileName;
imgTag.style.width = 600+"px";
반응형
'Javascript' 카테고리의 다른 글
Ajax 통신 시 Form 데이터 만들기 (0) | 2022.02.13 |
---|---|
console log 남기기 (0) | 2022.02.13 |
javascript execCommand 이용하기 (0) | 2022.02.08 |
javascript Color Picker 만들기 (0) | 2022.02.08 |
Ajax Pure Javascript 를 이용한 File upload (0) | 2022.02.08 |