element를 document내에 위치시킬때 x, y 좌표를 이용하여 위치시키는 방법과 top, left 값을 이용하여 위치시키는 방법 두가지가 있다.
button.x = 10;
button.y = 20;
button.width = 150;
button.height = 20;
=> button.position = "absolute 10 20 160 40";
position에 입력하는 값(x, y, a, b)은 왼쪽 위의 좌표(x, y)와 오른쪽 아래의 좌표(a, b)를 의미한다.
button.x = 10;
button.y = 20;
button.width = 150;
button.height = 20;
=> button.position = "absolute 10 20 160 40";
position에 입력하는 값(x, y, a, b)은 왼쪽 위의 좌표(x, y)와 오른쪽 아래의 좌표(a, b)를 의미한다.