css background-origin1 CSS background - shorthand 속성 CSS background-shorthand 속성 코드를 단축하기 위해 단일 속성에 모든 배경 속성을 지정할 수도 있다. 이것을 shorthand 속성이라고 한다. 아래와 같이 작성하는 것 대신에: body { background-color: #ffffff; background-image: url("img_tree.png"); background-repeat: no-repeat; background-position: right top; } background 속성을 활용하여 아래와 같이 간략히 작성할 수 있다. body { background: #ffffff url("img_tree.png") no-repeat right top; } shorthand 속성을 사용할 때 속성 값의 순서는 다음과 같다: b.. 2023. 7. 10. 이전 1 다음