반응형

<img id='imgID' src='../images/some_image.png'>

 

#JS

document.getElementById('imgID').style.transform = "rotate(90deg)"

 

출처 : https://stackoverflow.com/questions/16794310/rotate-image-with-javascript

 

#jQuery

$('#imgID').css({'transform':'rotate(90deg)'})

출처 : https://okky.kr/articles/681005

 

 

+ Recent posts