문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| wiki:css:css_note:css_2d_transforms [2021/03/18 15:25] emblim98 만듦 | wiki:css:css_note:css_2d_transforms [2023/01/13 18:44] (현재) | ||
|---|---|---|---|
| 줄 10: | 줄 10: | ||
| =====Source of the article==== | =====Source of the article==== | ||
| * [[https:// | * [[https:// | ||
| + | \\ | ||
| + | CSS '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| \\ | \\ | ||
| =====The translate() Method===== | =====The translate() Method===== | ||
| + | {{: | ||
| + | \\ | ||
| + | '' | ||
| + | 하기의 예제에서 div 요소를 현재 위치에서 우측으로 50px, 좌측으로 100px로 이동시킵니다.\\ | ||
| + | ====예제==== | ||
| + | <code css> | ||
| + | < | ||
| + | <html lang=" | ||
| + | < | ||
| + | <meta charset=" | ||
| + | <meta http-equiv=" | ||
| + | <meta name=" | ||
| + | < | ||
| + | < | ||
| + | #div01 { | ||
| + | border: 1px solid dodgerblue; | ||
| + | width: 300px; | ||
| + | height: 100px; | ||
| + | background-color: | ||
| + | transform: translate(50px, | ||
| + | -ms-transform: | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | <p> | ||
| + | The translate() method moves an element from its current position: | ||
| + | </p> | ||
| + | <div id=" | ||
| + | This div element is moved 50 pixels to the right, and 100 pixels down from its current position. | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| {{tag> | {{tag> | ||