-
(40)CSS_배경4HTML, CSS 2023. 3. 30. 17:19728x90
- CSS 배경 4번째 예제
- 아래 링크를 통해 태그 설명을 볼 수 있다.
- https://jm-rograming.tistory.com/74
(35)CSS_태그 설명
font-size 텍스트 크기를 설정 px, %, em, rem font-family 텍스트의 글꼴을 설정 ✔ 글꼴을 선택하는 방법 누구나 설치되어 있는 기본 글꼴을 사용 이미지로 처리 클라리언트에 글꼴을 다운로드 시켜 사
jm-rograming.tistory.com
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>CSS 배경4</title><style>div{background-image: url(image/bus.png);background-repeat: no-repeat;width: 150px;height: 150px;border: 2px solid red;margin-bottom: 20px;}.background1{background-size: 50px 100px;}.background2{background-size: 500px 500px;background-position: center;}.background3{background-size: contain;}.background4{width: 100px;height: 70px;background-size: cover;background-position: bottom center}</style></head><body><h2>CSS 배경 4</h2><div class="background1"></div><div class="background2"></div><div class="background3"></div><div class="background4"></div></body></html>'HTML, CSS' 카테고리의 다른 글
(42)CSS_패딩 (0) 2023.03.30 (41)CSS_배경5 (0) 2023.03.30 (39)CSS_배경3 (0) 2023.03.30 (38)CSS_배경2 (0) 2023.03.30 (37)CSS_배경1 (0) 2023.03.30