[고1 화면구현] 09 - (4)

2023. 9. 21. 09:04·고1/화면구현
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>배경 꾸미기</title>
        <style>
            div {
                background-color: rgb(218, 191, 188);
                background-size: 100px 100px;
                background-image: url("spongebob.png");
                background-repeat: no-repeat;
                background-position: center center;
            }
            div {
                width:400px;
                height:400px;
                color:rgb(114, 14, 244);
                font-size:16px;
            }
        </style>
    </head>
    <body>
        <h3>div 박스에 배경 꾸미기</h3>
        <hr>
        <div> Spongebob is an over-optimistc sponge that annoys other characters.</div>
    </body>
</html>​
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>이미지 테두리 만들기</title>
        <style>
            p {
                background:yellow;
                width:200px;
                height:60px;
                padding:10px;
                border:20px solid lightgray;
            }
            #round { border-image : url("border.png") 30 round; }
            #repeat { border-image : url("border.png") 30 repeat; }
            #stretch { border-image : url("border.png") 30 stretch; }
        </style>
    </head>
    <body>
        <h3>이미지 테두리 만들기</h3>
        <hr>
        다음은 원본 이미지입니다.<br>
        <img src="border.png" alt="원본">
        <hr>
        <p>20x20 크기의 회색 테두리를 가진 p태그</p>
        <p id="round">round 스타일 이미지 테두리</p>
        <p id="repeat">repeat 스타일 이미지 테두리</p>
        <p id="stretch">stretch 스타일 이미지 테두리</p>
    </body>
</html>

 

저작자표시 (새창열림)

'고1 > 화면구현' 카테고리의 다른 글

[고1 화면구현] 10 - (1)  (0) 2023.10.05
[고1 화면구현] 09 - (5)  (0) 2023.09.26
[고1 화면구현] 09 - (3)  (0) 2023.09.19
[고1 화면구현] 09 - (2)  (0) 2023.09.14
[고1 화면구현] 09 - (1)  (1) 2023.09.12
'고1/화면구현' 카테고리의 다른 글
  • [고1 화면구현] 10 - (1)
  • [고1 화면구현] 09 - (5)
  • [고1 화면구현] 09 - (3)
  • [고1 화면구현] 09 - (2)
백학도령
백학도령
  • 백학도령
    백학도령
  • 전체
    오늘
    어제
  • 공지사항

    • 유용한 청년
    • 목록 (111)
      • 웹디자인개발기능사 (5)
      • 티스토리 (1)
      • 고3 (6)
        • 응용 프로그래밍 (2)
        • 데이터베이스 (2)
        • 성공적인 직업생활 (1)
        • 비즈니스 영어 (1)
      • 고2 (40)
        • 문학 (4)
        • 수학 (4)
        • 인공지능 수학 (1)
        • 통합사회 (4)
        • 영어 (6)
        • 한국사 (6)
        • 일본어 (4)
        • 응용 프로그래밍 (3)
        • 게임 프로그래밍 (4)
        • 자료 구조 (4)
      • 고1 (59)
        • 국어 (4)
        • 수학 (4)
        • 과학 (4)
        • 영어 (4)
        • 프로그래밍 (16)
        • 화면구현 (11)
        • 게임엔진 (15)
        • 인공지능 (1)
  • hELLO· Designed By정상우.v4.10.3
백학도령
[고1 화면구현] 09 - (4)
상단으로

티스토리툴바