Notice
Recent Posts
Recent Comments
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
In Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

A Joyful AI Research Journey๐ŸŒณ๐Ÿ˜Š

[6] 230104 Ch. 5 CSS3 ๋ฐ•์Šค ๋ชจ๋ธ๊ณผ ์‘์šฉ: ๋ฐ•์Šค ๋ชจ๋ธ, ๊ฒฝ๊ณ„์„ , ๋งˆ์ง„๊ณผ ํŒจ๋”ฉ, ๋ฐฐ๊ฒฝ ์„ค์ •ํ•˜๊ธฐ, ๋งํฌ · ๋ฆฌ์ŠคํŠธ · ํ…Œ์ด๋ธ” ์Šคํƒ€์ผ [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 6์ผ] ๋ณธ๋ฌธ

๐ŸŒณBootcamp Revision 2023โœจ/HTML5, CSS3, JSP

[6] 230104 Ch. 5 CSS3 ๋ฐ•์Šค ๋ชจ๋ธ๊ณผ ์‘์šฉ: ๋ฐ•์Šค ๋ชจ๋ธ, ๊ฒฝ๊ณ„์„ , ๋งˆ์ง„๊ณผ ํŒจ๋”ฉ, ๋ฐฐ๊ฒฝ ์„ค์ •ํ•˜๊ธฐ, ๋งํฌ · ๋ฆฌ์ŠคํŠธ · ํ…Œ์ด๋ธ” ์Šคํƒ€์ผ [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 6์ผ]

yjyuwisely 2023. 1. 4. 12:50

230104 Wed 6th class

Ch. 5 CSS3 ๋ฐ•์Šค ๋ชจ๋ธ๊ณผ ์‘์šฉ

์ง„๋„: p.154 ~  (๊ต์žฌ: HTML5 + CSS3 + JavaScript๋กœ ๋ฐฐ์šฐ๋Š” ์›นํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ธฐ์ดˆ, ์ €์ž: ์ฒœ์ธ๊ตญ)

 

HTML5+CSS3+JavaScript๋กœ ๋ฐฐ์šฐ๋Š” ์›นํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ธฐ์ดˆ | ์ฒœ์ธ๊ตญ - ๊ต๋ณด๋ฌธ๊ณ 

HTML5+CSS3+JavaScript๋กœ ๋ฐฐ์šฐ๋Š” ์›นํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ธฐ์ดˆ | ์›นํ”„๋กœ๊ทธ๋ž˜๋ฐ ์ดˆ๋ณด์ž๋„ ์‰ฝ๊ฒŒ ๋ฐฐ์šฐ๋Š” ์›น ๊ฐœ๋ฐœ ์ง€์นจ์„œ!์ด ์ฑ…์€ ์›นํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ ์ฒ˜์Œ ๋ฐฐ์šฐ๋Š” ์ดˆ๋ณด์ž๋“ค์„ ์œ„ํ•ด ๊ธฐ์ดˆ๋ถ€ํ„ฐ ์ฐจ๊ทผ์ฐจ๊ทผ ์„ค๋ช…ํ•œ๋‹ค. 1~3์žฅ์—

product.kyobobook.co.kr

์˜ค๋Š˜ ๋ฐฐ์šด ๊ฒƒ ์ค‘ ๊ธฐ์–ตํ•  ๊ฒƒ์„ ์ •๋ฆฌํ–ˆ๋‹ค.


์ง€๋‚œ ์ˆ˜์—…์—์„œ ๋ฐฐ์šด ๊ฒƒ ์ค‘ ๋‹ค์‹œ ๊ธฐ์–ตํ•  ๊ฒƒ

<head> ์•ˆ์— <style type = "text/css"> </style> ์‚ฌ์šฉํ•œ๋‹ค.
์•„๋‹ˆ๋ฉด <body> ์•ˆ์— <p style="border-style: none">none.</p> ์ฒ˜๋Ÿผ ๊ฐ๊ฐ ๋”ฐ๋กœ ์ง€์ • ๊ฐ€๋Šฅํ•˜๋‹ค.

๋ฆฌ์ŠคํŠธ์— ํด๋ž˜์Šค ์„ค์ •ํ•  ๋•Œ <ul class="d"> ๋กœ ๋งŒ๋“ ๋‹ค. 


Ch. 5 CSS3 ๋ฐ•์Šค ๋ชจ๋ธ๊ณผ ์‘์šฉ

์ฑ…์˜ ๋ชฉ์ฐจ
-๋ฐ•์Šค ๋ชจ๋ธ
-๊ฒฝ๊ณ„์„ 
-๋งˆ์ง„๊ณผ ํŒจ๋”ฉ
-๋ฐฐ๊ฒฝ ์„ค์ •ํ•˜๊ธฐ
-๋งํฌ ์Šคํƒ€์ผ
-๋ฆฌ์ŠคํŠธ ์Šคํƒ€์ผ
-ํ…Œ์ด๋ธ” ์Šคํƒ€์ผ

1. ๋ฐ•์Šค๋ชจ๋ธ(Box model) p. 154

์š”์†Œ๋ฅผ ๋ฐ•์Šค(์‚ฌ๊ฐํ˜•) ํ˜•ํƒœ๋กœ ๊ทธ๋ฆฌ๋Š” ๊ฒƒ์ด๋‹ค.
CSS๋Š” ๊ฐ ๋ฐ•์Šค์˜ ํŠน์ง•(๋ฐฐ์น˜, ์ƒ‰์ƒ, ๊ฒฝ๊ณ„ ๋“ฑ)์„ ๊ฒฐ์ •ํ•˜๊ฒŒ ๋œ๋‹ค. 

CSS ๋ฐ•์Šค ๋ชจ๋ธ. ์ถœ์ฒ˜: https://www.digitalocean.com/community/tutorials/how-to-adjust-the-content-padding-border-and-margins-of-an-html-element-with-css

 

  • ์ฝ˜ํ…์ธ (Content): ๋ฐ•์Šค์˜ ๋‚ด์šฉ๋ฌผ์ด๊ณ , ํ…์ŠคํŠธ์™€ ์ด๋ฏธ์ง€๊ฐ€ ๋‚˜ํƒ€๋‚˜๋Š” ๋ถ€๋ถ„์ด๋‹ค.

  • ํŒจ๋”ฉ(Padding): ์•ˆ์ชฝ ์—ฌ๋ฐฑ
    ์ฝ˜ํ…์ธ  ์ฃผ์œ„์˜ ์˜์—ญ์ด๊ณ , ํˆฌ๋ช…ํ•˜๋‹ค. 
    ํŒจ๋”ฉ์˜ ํฌ๊ธฐ ์กฐ์ ˆ์— ๋”ฐ๋ผ ๋ฐ•์Šค ํฌ๊ธฐ๊ฐ€ ๋‹ค๋ฅด๋‹ค. 

     
  • ๊ฒฝ๊ณ„(Border): ๊ฒฝ๊ณ„์„ , ํŒจ๋”ฉ๊ณผ ๋‚ด์šฉ๋ฌผ์„ ๊ฐ์‹ธ๋Š” ๊ฒฝ๊ณ„์ด๊ณ , ๋ฐ•์Šค์˜ ๊ฒฝ๊ณ„์ƒ‰์— ์˜ํ•˜์—ฌ ์˜ํ–ฅ์„ ๋ฐ›๋Š”๋‹ค.

  • ๋งˆ์ง„(Margin): ๋ฐ”๊นฅ์ชฝ ์—ฌ๋ฐฑ
    ๊ฒฝ๊ณ„ ์ฃผ์œ„์˜ ์˜์—ญ์ด๊ณ , ํˆฌ๋ช…ํ•˜๋‹ค. 

 


2. ๊ฒฝ๊ณ„์„  p. 157

2.1 ๋ณด๋” ์Šคํƒ€์ผ style

border-top-style:dotted;
border-right-style:solid;
border-bottom-style:double;
border-left-style:dashed;

์„ ์•„๋ž˜์ฒ˜๋Ÿผ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๋‹ค. (top, right, bottom, left์ˆœ)

border-style: dotted solid double dashed(๊ธด ์ ์„ );

 

2.2 ๋ณด๋” ๋‘๊ป˜ width

๋‘๊ป˜๋Š” ์•„๋ž˜์ฒ˜๋Ÿผ ์ง€์ • ๊ฐ€๋Šฅํ•˜๋‹ค.

border-width: thin / medium / thick / ์ˆซ์žpx

border-top-width: 1px;
border-right-width: thin;
border-bottom-width: medium;
border-left-width: thick;

์„ ์ค„์—ฌ์„œ

border-width: 1px thin medium thick;

๊ฐ™์€ ํ˜•ํƒœ๋กœ ์“ธ ์ˆ˜ ์žˆ๋‹ค.

 

2.3 ๋ณด๋” ์ƒ‰์ƒ color

border-top-color:red;
border-right-color:#FF8000;
border-bottom-color:#FFFF33;
border-left-color:#00CC66;

๋„ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. (top, right, bottom, left์ˆœ)

border-color: red #FF8000 #FFFF33 #00CC66;

 

2.4 border: 

์ตœ์ข…์ ์œผ๋กœ, border-width ๋‘๊ป˜, border-style ์Šคํƒ€์ผ, border-color ์ƒ‰์ƒ์„ ์œ„์˜ ์„ค๋ช…์ฒ˜๋Ÿผ ํ•˜๋‚˜ํ•˜๋‚˜ ์ง€์ •ํ•˜๋Š” ๋Œ€์‹ 

์ˆœ์„œ๋Œ€๋กœ ์•„๋ž˜์™€ ๊ฐ™์€ ํ˜•ํƒœ๋กœ ์“ธ ์ˆ˜ ์žˆ๋‹ค.

border: 5px solid red;

 

2.5 ๊ธฐํƒ€

- ๋‘ฅ๊ทผ ๊ฒฝ๊ณ„์„ 

border-radius: 20px;


- ๊ฒฝ๊ณ„์— ๊ทธ๋ฆผ์ž ์ƒ์„ฑ: ์ˆœ์„œ๋Œ€๋กœ ๊ฐ€๋กœ ์˜คํ”„์…‹, ์„ธ๋กœ ์˜คํ”„์…‹, ๋ฒˆ์ง€๋Š” ์ •๋„, ๊ทธ๋ฆผ์ž์ƒ‰์ด๋‹ค.

box-shadow; 20px 10px 5px #666666;


2.6 ์˜ˆ์‹œ

#none{border-style:none}
#dotted{border-style:dotted; border-width:thin; border-color:red;}
#dashed{border-style:dashed; border-width:medium; border-color:#FF8000;}
#solid{border-style:solid; border-width:thick; border-color:#FFFF33;}
#double{border-style:double; border-width:3px; border-color:#00CC66;}
#groove{border-style:groove; border-width:5px; border-color:#0080FF;}
#ridge{border-style:ridge; border-width:10px; border-color:#7F00FF;}
#inset{border-style:inset; border-color:#FF00FF;}
#outset{border-style:outset; border-color:#808080;}
#a{/*border-top-style:dotted;
border-right-style:solid;
border-bottom-style:double;
border-left-style:dashed;*/
border-style: dotted solid double dashed;

/*border-top-width: 1px;
border-right-width: thin;
border-bottom-width: medium;
border-left-width: thick;*/
border-width: 1px thin medium thick

/*border-top-color:red;
border-right-color:#FF8000;
border-bottom-color:#FFFF33;
border-left-color:#00CC66;*/
border-color: red #FF8000 #FFFF33 #00CC66;
}

</style>
</head>
<body>
<p id = "none">none.</p>
<p id = "dotted">dotted</p>
<p id = "dashed">dashed</p>
<p id = "solid">solid</p>
<p id = "double">double</p>
<p id = "groove">groove</p>
<p id = "ridge">ridge</p>
<p id = "inset">inset</p>
<p id = "outset">outset</p>
<p id = "a">4๊ฐœ์˜ ๊ฒฝ๊ณ„์„ ์ด ๋ชจ๋‘ ๋‹ค๋ฅด๊ฒŒ ์„ค์ •๋œ๋‹ค.</p>
</body>
</html>

 

๊ฒฐ๊ณผ)


3. ๋งˆ์ง„๊ณผ ํŒจ๋”ฉ p. 163

์˜ˆ์‹œ)

๋„ค์ด๋ฒ„ ์˜ˆ์‹œ

Naver ๋กœ๊ทธ์ธ ์‚ฌ์ด์ฆˆ 315 x 105
ํŒจ๋”ฉ: 16, 16, 12, 17px
๋ณด๋”: ๊ฐ 1px

- resize: ํฌ๊ธฐ ์กฐ์ • ๊ฐ€๋Šฅํ•˜๋‹ค.

resize: both

 

- overflow: auto
์ฝ˜ํ…์ธ ์˜ ํฌ๊ธฐ๊ฐ€ ์ฃผ์–ด์ง„ ๊ณต๊ฐ„์„ ๋„˜์–ด๊ฐ€๋Š” ๊ฒฝ์šฐ์—๋งŒ ์Šคํฌ๋กค๋ฐ”๊ฐ€ ์ƒ๊ธด๋‹ค. 

overflow ์†์„ฑ์€ ์ž์‹ ์š”์†Œ๊ฐ€ ๋ถ€๋ชจ ์š”์†Œ์˜ ๋ฒ”์œ„๋ฅผ ๋ฒ—์–ด๋‚ฌ์„ ๋•Œ, ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ•  ๊ฒƒ์ธ์ง€๋ฅผ ๊ฒฐ์ •ํ•œ๋‹ค. ์ฐธ๊ณ : p. 212

overflow: auto /*์ž๋™์œผ๋กœ ์Šคํฌ๋กค๋ฐ”๊ฐ€ ๋‚˜ํƒ€๋‚œ๋‹ค.*/
overflow: hidden /*๋ถ€๋ชจ ์˜์—ญ์„ ๋ฒ—์–ด๋‚˜๋Š” ๋ถ€๋ถ„์„ ๋ณด์ด์ง€ ์•Š๊ฒŒ ํ•œ๋‹ค.*/
overflow: scroll /*๋ถ€๋ชจ ์˜์—ญ์„ ๋ฒ—์–ด๋‚˜๋Š” ๋ถ€๋ถ„์„ ์Šคํฌ๋กคํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค.*/

 

 

3.1 ๋งˆ์ง„ ์„ค์ •ํ•˜๊ธฐ

์ˆœ์„œ๋Œ€๋กœ ์œ„, ์˜ค๋ฅธ์ชฝ, ์•„๋ž˜, ์™ผ์ชฝ์œผ๋กœ ํ•˜๊ฑฐ๋‚˜ 

margin: 10px 20px 30px 40px;

์•„๋ž˜์ฒ˜๋Ÿผ ํ•˜๋ฉด 4๊ฐ€์ง€ ์˜์—ญ์˜ ๊ฐ’์ด ๊ฐ™๋‹ค.

margin: 10px

 

3.2 ํŒจ๋”ฉ (Padding) ์„ค์ •ํ•˜๊ธฐ

์•„๋ž˜์˜ ๊ฒฝ์šฐ  100px๋Š” ์œ„, ์•„๋ž˜, 50px๋Š” ์™ผ์ชฝ, ์˜ค๋ฅธ์ชฝ์„ ๋งํ•œ๋‹ค. (์—†์„ ๊ฒฝ์šฐ 0)

padding: 100px 50px

 

div ์ด์ค‘ ๊ตฌ์กฐ๋กœ ๋ฐ•์Šค ์•ˆ์— ๋ฐ•์Šค ๋„ฃ์–ด์„œ ์ค‘์•™ ์ •๋ ฌ ์‹œํ‚จ๋‹ค. 

์ฐธ๊ณ ํ•ด์„œ ์ˆ˜์ •ํ–ˆ๋‹ค: https://suhwi.tistory.com/8

<head> ํƒœ๊ทธ ์•ˆ์— ๋“ค์–ด๊ฐ„๋‹ค.

.target6{
        background-color: pink; width: 80%; height: 200px;
    }
    .target7{
     color:white;
     background-color: #CCCCFF;
        width: 10%; height: 100px;
        border: 1px solid white;
        margin-left:auto; margin-right:auto; 
    }

 

<body> ํƒœ๊ทธ ์•ˆ์— ๋“ค์–ด๊ฐˆ ๊ฒƒ

<div class="target6">
    <div class="target7">123 centered!</div>
</div>

 

๊ฒฐ๊ณผ) 123 centered! ๊ฐ€ ๊ฐ€์šด๋ฐ๋กœ ๋ฐฐ์น˜๋˜์—ˆ๋‹ค.


4. ๋ฐฐ๊ฒฝ ์„ค์ •ํ•˜๊ธฐ p. 171

์ƒ์„ธ ์ฐธ๊ณ : https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=pungwun&logNo=220590183478

background ์ด๋ฏธ์ง€ ์ฒจ๋ถ€ 

๊ธฐ๋ณธ ๊ตฌ์กฐ์ด๋‹ค.

body {background-image:url('back.gif');

 

๊ธฐ๋ณธ์ ์œผ๋กœ ์ „์ฒด ์˜์—ญ์— ๋ฐ˜๋ณต ์ด๋ฏธ์ง€๊ฐ€ ๋œฌ๋‹ค.
๋ฐ˜๋ณต ์•ˆ ํ•˜๊ฒŒ ํ•˜๋ ค๋ฉด x์ถ•์œผ๋กœ๋งŒ ๋ฐ˜๋ณตํ•œ๋‹ค.

background-repeat: repeat-x

 

y์ถ•์œผ๋กœ๋งŒ ๋ฐ˜๋ณตํ•œ๋‹ค.

background-repeat: repeat-y

 

๋ฐ˜๋ณต ์—†๋‹ค.

background-repeat: no-repeat;

 

์˜ˆ์‹œ)

background-color:beige;
background-image:url('image/coffee.jpg');
background-repeat: no-repeat;
background-position: left top;

์œ„์˜ ์˜ˆ์‹œ๋Š” ์•„๋ž˜์™€ ๊ฐ™๋‹ค. 

background: beige url('image/coffee.jpg') no-repeat left top;

 

๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง€ ๋ถ€์ฐฉ: 

background-attachment: fixed (๊ณ ์ •๋œ๋‹ค.), scroll (๋””ํดํŠธ ๊ฐ’), local(์š”์†Œ์˜ ์ฝ˜ํ…์ธ ์™€ ๊ฐ™์ด ์Šคํฌ๋กค๋จ)


5. ๋งํฌ ์Šคํƒ€์ผ p. 175

์•ˆ ๊ฐ€๋ณธ ๋งํฌ์˜ ์Šคํƒ€์ผ์ด๋‹ค.

a:link{color:red;}


๋ฐฉ๋ฌธ๋œ ๋งํฌ์˜ ์Šคํƒ€์ผ์ด๋‹ค.

a:visited{color:orange;}


๋งˆ์šฐ์Šค๊ฐ€ ์œ„์— ์žˆ์„ ๋•Œ์˜ ์Šคํƒ€์ผ์ด๋‹ค.

a:hover{color:yellow;}


๋งˆ์šฐ์Šค๋กœ ํด๋ฆญ๋  ๋•Œ์˜ ์Šคํƒ€์ผ์ด๋‹ค.

a:active{color:lightgreen;}

 

์›ํ•˜๋Š” ์ด๋ฏธ์ง€(ex. ํŒŒ๋ž€ ๊ตฌ์Šฌ ๋“ฑ)๋ฅผ ๋ฆฌ์ŠคํŠธ ํ•ญ๋ชฉ ๋งˆ์ปค๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค. ๊ธ€์ž ํฌ๊ธฐ์— ๋งž๋Š” ์ด๋ฏธ์ง€๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค. ์ด๋ฏธ์ง€ ํฌ๊ธฐ ๊ทธ๋Œ€๋กœ ๋‚˜์˜ค๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.

ul{list-style-image: url('์ฃผ์†Œ');}

6. ๋ฆฌ์ŠคํŠธ ์Šคํƒ€์ผ p. 177

๋‚ด๋น„๊ฒŒ์ด์…˜ ๋ฐ” p. 180

display:inline;/* block ์š”์†Œ -> inline ์š”์†Œ๋กœ ๋ณ€๊ฒฝ */ 
text-transform:uppercase; 
padding:0 10px; /*ใ…๋‹จ์–ด์™€ ๋‹จ์–ด ์‚ฌ์ด์˜ ๊ฐ„๊ฒฉ์ด ๋ฒŒ์–ด์ง„๋‹ค. */ 
letter-spacing:10px; /* ์•ŒํŒŒ๋ฒณ๊ณผ ์•ŒํŒŒ๋ฒณ ์‚ฌ์ด์˜ ๊ฐ„๊ฒฉ์ด ๋ฒŒ์–ด์ง„๋‹ค. */

์ „์ฒด ์˜ˆ์‹œ)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Navigation example p.180</title>
<style type = "text/css">
ul{list-style:none; text-align:center; background-color:#E5FFCC;
border-top: 1px solid #00FF80; border-bottom: 1px solid #00FF80; padding: 10px 0;}

ul li{display:inline;
text-transform:uppercase;
padding:0 100px; letter-spacing:20px;}

ul li a{text-decoration:none; color:#00CC66;}
ul li a:hover{text-decoration:underline;}
</style>
</head>


<body>
<ul>
<li><a href="http://www.google.com">home</a></li>
<li><a href="http://www.google.com">blog</a></li>
<li><a href="http://www.google.com">about</a></li>
<li><a href="http://www.google.com">contact</a></li>
</ul>
</body>
</html>

 

๊ฒฐ๊ณผ) 


7. ํ…Œ์ด๋ธ” ์Šคํƒ€์ผ

7.1. ๊ฒฝ๊ณ„ ํ†ตํ•ฉํ•˜๊ธฐ

border-collapse๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.

border-collapse: collapse;

ํ•ฉ์ณ์„œ ๋‹จ์ผ์„ ์ด ๋œ๋‹ค.

border-collapse: seperate;

ํ•ฉ์น˜์ง€ ์•Š๊ณ  ๋ถ„๋ฆฌํ•˜์—ฌ ํ‘œ์‹œํ•œ๋‹ค.

์˜ˆ์‹œ)

table{border-collapse:collapse;}

 

7.2 ๋„ˆ๋น„ width

width๋Š” %๋‚˜ px๋กœ ์กฐ์ •ํ•œ๋‹ค.
์˜ˆ์‹œ)

width: 100%
width: 100px



7.3 ๋†’์ด height

๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ๋†’์ด๋Š” height๋กœ ์กฐ์ •ํ•œ๋‹ค.


๊ธฐํƒ€)

์˜คํ”„์…‹:  p.200

์ปดํ“จํ„ฐ ๊ณผํ•™์—์„œ ๋ฐฐ์—ด์ด๋‚˜ ์ž๋ฃŒ ๊ตฌ์กฐ ์˜ค๋ธŒ์ ํŠธ ๋‚ด์˜ ์˜คํ”„์…‹(offset)์€ ์ผ๋ฐ˜์ ์œผ๋กœ ๋™์ผ ์˜ค๋ธŒ์ ํŠธ ์•ˆ์—์„œ ์˜ค๋ธŒ์ ํŠธ ์ฒ˜์Œ๋ถ€ํ„ฐ ์ฃผ์–ด์ง„ ์š”์†Œ๋‚˜ ์ง€์ ๊นŒ์ง€์˜ ๋ณ€์œ„์ฐจ๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ์ •์ˆ˜ํ˜•์ด๋‹ค.

์ด๋ฅผํ…Œ๋ฉด, ๋ฌธ์ž A์˜ ๋ฐฐ์—ด์ด abcdef๋ฅผ ํฌํ•จํ•œ๋‹ค๋ฉด 'c' ๋ฌธ์ž๋Š” A ์‹œ์ž‘์ ์—์„œ 2์˜ ์˜คํ”„์…‹์„ ์ง€๋‹Œ๋‹ค๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค.

In computer science, an offset within an array or other data structure object is an integer indicating the distance (displacement) between the beginning of the object and a given element or point, presumably within the same object. The concept of a distance is valid only if all elements of the object are of the same size (typically given in bytes or words).

For example, if A is an array of characters containing "abcdef", the fourth element containing the character 'd' has an offset of three from the start of A.


728x90
๋ฐ˜์‘ํ˜•

'๐ŸŒณBootcamp Revision 2023โœจ > HTML5, CSS3, JSP' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[8] 230106 Ch. 7 HTML๊ณผ CSS๋กœ ์›น์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ: ์›น ์‚ฌ์ดํŠธ ์ž‘์„ฑ, HTML ๋ฌธ์„œ ยท CSS ํŒŒ์ผ ์ž‘์„ฑํ•˜๊ธฐ, ์™„์„ฑ๋œ ํŽ˜์ด์ง€ ๋ณด๊ธฐ [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 8์ผ]  (0) 2023.01.06
[7] 230105 Ch. 6 CSS ๋ ˆ์ด์•„์›ƒ๊ณผ ์• ๋‹ˆ๋ฉ”์ด์…˜: ๋ ˆ์ด์•„์›ƒ์˜ ๊ธฐ์ดˆ, ์š”์†Œ ์œ„์น˜ ์ •ํ•˜๊ธฐ, <div> ์š”์†Œ ยท ์˜๋ฏธ์  ์š”์†Œ๋ฅผ ์ด์šฉํ•œ ๋ ˆ์ด์•„์›ƒ, ํšจ๊ณผ, CSS3 ๋ณ€ํ™˜ ยท 3์ฐจ์› ๋ณ€ํ™˜ ยท ์• ๋‹ˆ๋ฉ”์ด์…˜ [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 7์ผ]  (0) 2023.01.05
[5] 230103 Ch. 4 CSS3 ์Šคํƒ€์ผ ์‹œํŠธ ๊ธฐ์ดˆ: CSS ๊ฐœ๋…, ์„ ํƒ์ž, CSS๋ฅผ ์‚ฝ์ž…ํ•˜๋Š” ๋ฐฉ๋ฒ•, ์ƒ‰์ƒ, ํฐํŠธ, ํ…์ŠคํŠธ ์Šคํƒ€์ผ ์„ค์ • [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 5์ผ]  (0) 2023.01.03
[4] 230102 Ch. 3 HTML5 ๋ฉ€ํ‹ฐ๋ฏธ๋””์–ด & ์ž…๋ ฅ์–‘์‹: ์›น ๋ธŒ๋ผ์šฐ์ €์™€ ๋ฉ€ํ‹ฐ๋ฏธ๋””์–ด, ์˜ค๋””์˜ค, ๋น„๋””์˜ค, iframe, <div>์™€ <span>, HTML ์ž…๋ ฅ ์–‘์‹, ์ž…๋ ฅ ํƒœ๊ทธ #1 ยท #2, HTML5 ์ž…๋ ฅ ์š”์†Œ [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 4์ผ]  (3) 2023.01.02
Comments