[Vuejs]-Function doesn't work on button (myMove is not defined at HTMLButtonElement.onclick)

0👍

You need to change the position property of your <img> element to either relative or absolute.
The default is static and will keep your image in place.

<img id="picture" :src="randomImage" style="position:relative" />

Leave a comment