- +
+ ``` ### CSS diff --git a/files/ko/web/css/_colon_fullscreen/index.md b/files/ko/web/css/_colon_fullscreen/index.md index f4c609698d9304..3f896972c232e7 100644 --- a/files/ko/web/css/_colon_fullscreen/index.md +++ b/files/ko/web/css/_colon_fullscreen/index.md @@ -2,6 +2,7 @@ title: ":fullscreen" slug: Web/CSS/:fullscreen --- + {{CSSRef}} [CSS](/ko/docs/Web/CSS) **`:fullscreen`** [의사 클래스](/ko/docs/Web/CSS/Pseudo-classes)는 전체 화면 모드에 진입한 모든 요소와 일치합니다. 다수의 요소가 전체 화면 중이라면 그 요소 모두 선택합니다. @@ -25,9 +26,11 @@ slug: Web/CSS/:fullscreen ```html
MDN Web Docs Demo: :fullscreen pseudo-class
-This demo uses the :fullscreen
pseudo-class to automatically
+
+ This demo uses the :fullscreen
pseudo-class to automatically
change the style of a button used to toggle full-screen mode on and off,
- entirely using CSS.
-이 링크는 이미 방문했습니다.
+평범한 링크입니다.
+이 링크는 이미 방문했습니다.
플레이스홀더 링크 (스타일 적용 안됨) ``` diff --git a/files/ko/web/css/_colon_not/index.md b/files/ko/web/css/_colon_not/index.md index 3358fd6d5c4fbf..ed3cb854654f8a 100644 --- a/files/ko/web/css/_colon_not/index.md +++ b/files/ko/web/css/_colon_not/index.md @@ -2,6 +2,7 @@ title: ":not()" slug: Web/CSS/:not --- + {{ CSSRef() }} 부정(**negation**) [CSS 가상 클래스](/ko/docs/Web/CSS/Pseudo-classes) `:not(X)`는 인수로 간단한 선택자(selector) *X*를 취하는 기능 표기법입니다. 인수로 표시되지 않은 요소와 일치합니다. *X*는 다른 부정 선택자를 포함해서는 안 됩니다. @@ -21,8 +22,12 @@ slug: Web/CSS/:not ## 예제 ```css -p:not(.classy) { color: red; } -body :not(p) { color: green; } +p:not(.classy) { + color: red; +} +body :not(p) { + color: green; +} ``` 위의 CSS 및 아래 HTML이 주어진다면... @@ -30,7 +35,7 @@ body :not(p) { color: green; } ```html
Some text.
Some other text.
-One more text +One more text ``` 이 같은 출력을 얻습니다: diff --git a/files/ko/web/css/_colon_nth-child/index.md b/files/ko/web/css/_colon_nth-child/index.md index c0313104b0db51..db2ea6a1e42802 100644 --- a/files/ko/web/css/_colon_nth-child/index.md +++ b/files/ko/web/css/_colon_nth-child/index.md @@ -2,6 +2,7 @@ title: ":nth-child" slug: Web/CSS/:nth-child --- + {{CSSRef}} [CSS](/ko/docs/Web/CSS) **`:nth-child()`** [의사 클래스](/ko/docs/Web/CSS/Pseudo-classes)는 형제 사이에서의 순서에 따라 요소를 선택합니다. @@ -32,6 +33,7 @@ li:nth-child(2) { ### 함수형 표기법 - `span:nth-child(2n+1)
, WITHOUT an
- <em>
among the child elements.
+
+ span:nth-child(2n+1)
, WITHOUT an <em>
among
+ the child elements.
+
Children 1, 3, 5, and 7 are selected.
- -
span:nth-child(2n+1)
, WITH an
- <em>
among the child elements.
-Children 1, 5, and 7 are selected.
- 3 is used in the counting because it is a child, but it isn't
- selected because it isn't a <span>
.
+ +
+ span:nth-child(2n+1)
, WITH an <em>
among the
+ child elements.
+
+
+ Children 1, 5, and 7 are selected.
+ 3 is used in the counting because it is a child, but it isn't selected because
+ it isn't a <span>
.
+
- -
span:nth-of-type(2n+1)
, WITH an
- <em>
among the child elements.
-Children 1, 4, 6, and 8 are selected.
- 3 isn't used in the counting or selected because it is an <em>
,
- not a <span>
, and nth-of-type
only selects
- children of that type. The <em>
is completely skipped
- over and ignored.
+ +
+ span:nth-of-type(2n+1)
, WITH an <em>
among the
+ child elements.
+
+
+ Children 1, 4, 6, and 8 are selected.
+ 3 isn't used in the counting or selected because it is an
+ <em>
, not a <span>
, and
+ nth-of-type
only selects children of that type. The
+ <em>
is completely skipped over and ignored.
+
+링크를 아직 방문하지 않으셨나요?
이미 방문했습니다. ``` diff --git a/files/ko/web/css/_doublecolon_-webkit-scrollbar/index.md b/files/ko/web/css/_doublecolon_-webkit-scrollbar/index.md index 4ec01eeb65b4cf..e178700c5c5e2b 100644 --- a/files/ko/web/css/_doublecolon_-webkit-scrollbar/index.md +++ b/files/ko/web/css/_doublecolon_-webkit-scrollbar/index.md @@ -2,6 +2,7 @@ title: "::-webkit-scrollbar" slug: Web/CSS/::-webkit-scrollbar --- + {{CSSRef}}{{Non-standard_Header}} CSS 의사 요소 `::-webkit-scrollbar` 는 요소에 `overflow:scroll;`이 설정되어 있을 때 해당 요소의 스크롤바 스타일에 영향을 끼칩니다. @@ -27,7 +28,9 @@ WebKit 브라우저의 스크롤바의 다양한 부분을 커스터마이징하 ### CSS ```css -.visible-scrollbar, .invisible-scrollbar, .mostly-customized-scrollbar { +.visible-scrollbar, +.invisible-scrollbar, +.mostly-customized-scrollbar { display: block; width: 10em; overflow: auto; @@ -56,28 +59,27 @@ WebKit 브라우저의 스크롤바의 다양한 부분을 커스터마이징하 ```html ``` diff --git a/files/ko/web/css/_doublecolon_after/index.md b/files/ko/web/css/_doublecolon_after/index.md index d6ea2998f619dc..80f4d4f9f3aa01 100644 --- a/files/ko/web/css/_doublecolon_after/index.md +++ b/files/ko/web/css/_doublecolon_after/index.md @@ -68,14 +68,14 @@ a::after { ```css .ribbon { - background-color: #5BC8F7; + background-color: #5bc8f7; } .ribbon::after { - content: "멋진 주황색 상자입니다."; - background-color: #FFBA10; - border-color: black; - border-style: dotted; + content: "멋진 주황색 상자입니다."; + background-color: #ffba10; + border-color: black; + border-style: dotted; } ``` @@ -92,9 +92,12 @@ a::after { #### HTML ```html -
이 예제는 - 텍스트와 함께 약간의 - 툴팁을 포함합니다. +
+ 이 예제는 + 텍스트와 함께 + 약간의 + 툴팁을 + 포함합니다.
``` @@ -104,7 +107,7 @@ a::after { span[data-descr] { position: relative; text-decoration: underline; - color: #00F; + color: #00f; cursor: help; } diff --git a/files/ko/web/css/_doublecolon_before/index.md b/files/ko/web/css/_doublecolon_before/index.md index b7750ea70585f0..4c48e25306aa65 100644 --- a/files/ko/web/css/_doublecolon_before/index.md +++ b/files/ko/web/css/_doublecolon_before/index.md @@ -2,6 +2,7 @@ title: "::before (:before)" slug: Web/CSS/::before --- + {{CSSRef}} CSS에서, **`::before`** 는 선택한 요소의 첫 자식으로 [의사 요소](/ko/docs/Web/CSS/Pseudo-elements)를 하나 생성합니다. 보통 {{cssxref("content")}} 속성과 함께 짝지어, 요소에 장식용 콘텐츠를 추가할 때 사용합니다. 기본값은 인라인입니다. @@ -65,12 +66,12 @@ We can style text or images in the {{cssxref("content")}} property almost any wa ```css .ribbon { - background-color: #5BC8F7; + background-color: #5bc8f7; } .ribbon::before { content: "Look at this orange box."; - background-color: #FFBA10; + background-color: #ffba10; border-color: black; border-style: dotted; } @@ -110,11 +111,11 @@ li { } li.done { - background: #CCFF99; + background: #ccff99; } li.done::before { - content: ''; + content: ""; position: absolute; border-color: #009933; border-style: solid; @@ -131,12 +132,16 @@ li.done::before { #### JavaScript ```js -var list = document.querySelector('ul'); -list.addEventListener('click', function(ev) { - if (ev.target.tagName === 'LI') { - ev.target.classList.toggle('done'); - } -}, false); +var list = document.querySelector("ul"); +list.addEventListener( + "click", + function (ev) { + if (ev.target.tagName === "LI") { + ev.target.classList.toggle("done"); + } + }, + false, +); ``` Here is the above code example running live. Note that there are no icons used, and the check-mark is actually the `::before` that has been styled in CSS. Go ahead and get some stuff done. @@ -156,7 +161,7 @@ As this is CSS; not HTML, you can **not** use markup entities in content values.Lorem ipsum dolor sit amet, consectetur adipiscing elit.Phasellus eget velit sagittis. +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. ++Phasellus eget velit sagittis. ``` ```css hidden -body { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } +body { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} ``` {{EmbedLiveSample("ex0", "200", "125")}} @@ -96,13 +106,25 @@ The {{HTMLElement("blockquote")}}가 브라우저 기본 스타일과 함께, #### `all:unset` ```html hidden -
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Phasellus eget velit sagittis. +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. ++Phasellus eget velit sagittis. ``` ```css hidden -body { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } -blockquote { all: unset; } +body { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} +blockquote { + all: unset; +} ``` {{EmbedLiveSample("ex1", "200", "125")}} @@ -112,13 +134,25 @@ blockquote { all: unset; } #### `all:initial` ```html hidden -
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Phasellus eget velit sagittis. +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. ++Phasellus eget velit sagittis. ``` ```css hidden -body { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } -blockquote { all: initial; } +body { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} +blockquote { + all: initial; +} ``` {{EmbedLiveSample("ex2", "200", "125")}} @@ -128,13 +162,25 @@ blockquote { all: initial; } #### `all:inherit` ```html hidden -
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Phasellus eget velit sagittis. +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. ++Phasellus eget velit sagittis. ``` ```css hidden -body { font-size: small; background-color: #F0F0F0; color:blue; } -blockquote { background-color: skyblue; color: red; } -blockquote { all: inherit; } +body { + font-size: small; + background-color: #f0f0f0; + color: blue; +} +blockquote { + background-color: skyblue; + color: red; +} +blockquote { + all: inherit; +} ``` {{EmbedLiveSample("ex3", "200", "125")}} diff --git a/files/ko/web/css/alternative_style_sheets/index.md b/files/ko/web/css/alternative_style_sheets/index.md index 485496b6053cd5..badf392d7f0fb8 100644 --- a/files/ko/web/css/alternative_style_sheets/index.md +++ b/files/ko/web/css/alternative_style_sheets/index.md @@ -2,6 +2,7 @@ title: Alternative style sheets slug: Web/CSS/Alternative_style_sheets --- + Firefox는 _대체 스타일시트_ 를 지원합니다. 대체 스타일시트를 제공하는 페이지에서는 **보기>페이지 스타일** 메뉴를 이용하여 페이지에 적용될 스타일을 선택할 수 있습니다. 따라서 사용자는 자신이 원하는 다양한 종류의 페이지를 볼 수 있게 됩니다. diff --git a/files/ko/web/css/angle/index.md b/files/ko/web/css/angle/index.md index 86bb40d4802a52..958945b129c6a1 100644 --- a/files/ko/web/css/angle/index.md +++ b/files/ko/web/css/angle/index.md @@ -31,17 +31,17 @@ slug: Web/CSS/angle ### 시계 방향 우측 90도 | ![Angle90.png](angle90.png) | `90deg = 100grad = 0.25turn ≈ 1.5708rad` | -| ------------------------- | --------------------------------- | +| --------------------------- | ---------------------------------------- | ### 반대로 회전 | ![Angle180.png](angle180.png) | `180deg = 200grad = 0.5turn ≈ 3.1416rad` | -| ------------------------- | --------------------------------- | +| ----------------------------- | ---------------------------------------- | ### 시계 반대 방향 우측 90도 | ![AngleMinus90.png](angleMinus90.png) | `-90deg = -100grad = -0.25turn ≈ -1.5708rad` | -| ------------------------- | --------------------------------- | +| ------------------------------------- | -------------------------------------------- | ### 회전 없음 diff --git a/files/ko/web/css/animation-delay/index.md b/files/ko/web/css/animation-delay/index.md index 3d34e146a45bcf..d191c061cdccd5 100644 --- a/files/ko/web/css/animation-delay/index.md +++ b/files/ko/web/css/animation-delay/index.md @@ -2,6 +2,7 @@ title: animation-delay slug: Web/CSS/animation-delay --- + {{CSSRef}} **`animation-delay`** [CSS](/ko/docs/Web/CSS) 속성은 애니메이션이 시작할 시점을 지정합니다. 시작 즉시, 잠시 후에, 또는 애니메이션이 일부 진행한 시점부터 시작할 수 있습니다. @@ -25,6 +26,7 @@ animation-delay: 2.1s, 480ms; ### 값 - `{{cssxref("<time>")}}` + - : 애니메이션이 시작될 요소가 적용되는 순간부터의 시간 오프셋입니다. 이 값은 초 또는 밀리 초 (ms)로 지정할 수 있습니다. 이 값은 필수입니다. 양수 값은 지정된 시간이 경과 한 후 애니메이션이 시작되어야 함을 나타냅니다. 기본값인 0의 값은 애니메이션이 적용되는 즉시 시작해야 함을 나타냅니다. diff --git a/files/ko/web/css/animation-fill-mode/index.md b/files/ko/web/css/animation-fill-mode/index.md index 888742a1ff74f9..ecd0a615123aa7 100644 --- a/files/ko/web/css/animation-fill-mode/index.md +++ b/files/ko/web/css/animation-fill-mode/index.md @@ -2,6 +2,7 @@ title: animation-fill-mode slug: Web/CSS/animation-fill-mode --- + {{CSSRef}} **`animation-fill-mode`** [CSS](/en/CSS) 속성은 CSS 애니메이션이 실행 전과 후에 대상에 스타일을 적용하는 방법을 지정합니다. @@ -82,8 +83,12 @@ animation-fill-mode: both, forwards, none; } @keyframes grow { - 0% { font-size: 0; } - 100% { font-size: 40px; } + 0% { + font-size: 0; + } + 100% { + font-size: 40px; + } } .demo:hover .grows { diff --git a/files/ko/web/css/animation/index.md b/files/ko/web/css/animation/index.md index 39cfbb02c2f3ee..be855d6643439e 100644 --- a/files/ko/web/css/animation/index.md +++ b/files/ko/web/css/animation/index.md @@ -35,7 +35,9 @@ animation: 3s ease-in 1s 2 reverse both paused slidein; animation: 3s linear 1s slidein; /* 애니메이션 두 개 */ -animation: 3s linear slidein, 3s ease-out 5s slideout; +animation: + 3s linear slidein, + 3s ease-out 5s slideout; ``` `animation` 속성은 쉼표로 구분된 하나 이상의 단일 애니메이션으로 지정됩니다. @@ -207,8 +209,9 @@ animation: 3s linear slidein, 3s ease-out 5s slideout; height: 100vh; aspect-ratio: 1 / 1; /* 여러 애니메이션은 쉼표로 구분되고, 각 애니메이션의 매개변수는 독립적으로 설정됩니다. */ - animation: 4s linear 0s infinite alternate rise, 24s linear 0s infinite - psychedelic; + animation: + 4s linear 0s infinite alternate rise, + 24s linear 0s infinite psychedelic; } @keyframes rise { @@ -258,8 +261,9 @@ animation: 3s linear slidein, 3s ease-out 5s slideout; 이전에 선언된 애니메이션 속성을 재정의합니다. */ /* bounce는 rise가 설정한 transform을 '덮어쓰므로' 태양은 수평으로만 움직입니다. */ - animation: 4s linear 0s infinite alternate rise, 4s linear 0s infinite - alternate bounce; + animation: + 4s linear 0s infinite alternate rise, + 4s linear 0s infinite alternate bounce; } @keyframes rise { diff --git a/files/ko/web/css/at-rule/index.md b/files/ko/web/css/at-rule/index.md index 1cfd31ddc94f22..a27f34395ed3e1 100644 --- a/files/ko/web/css/at-rule/index.md +++ b/files/ko/web/css/at-rule/index.md @@ -9,7 +9,7 @@ slug: Web/CSS/At-rule ```css /* General structure */ -@IDENTIFIER (RULE); +@identifier (RULE); /* Example: tells browser to use UTF-8 character set */ @charset "utf-8"; diff --git a/files/ko/web/css/attribute_selectors/index.md b/files/ko/web/css/attribute_selectors/index.md index eb3333c25a1211..ecb0204eda16e8 100644 --- a/files/ko/web/css/attribute_selectors/index.md +++ b/files/ko/web/css/attribute_selectors/index.md @@ -14,7 +14,8 @@ a[title] { } /* elements with an href matching "https://example.org" */ -a[href="https://example.org"] { +a[href="https://example.org"] +{ color: green; } diff --git a/files/ko/web/css/backdrop-filter/index.md b/files/ko/web/css/backdrop-filter/index.md index 53fec0fb52f322..eabd4f2b8fde6c 100644 --- a/files/ko/web/css/backdrop-filter/index.md +++ b/files/ko/web/css/backdrop-filter/index.md @@ -2,6 +2,7 @@ title: backdrop-filter slug: Web/CSS/backdrop-filter --- + {{CSSRef}} [CSS](/ko/docs/Web/CSS) **`backdrop-filter`** 는 요소 뒤 영역에 흐림이나 색상 시프트 등 그래픽 효과를 적용할 수 있는 속성입니다. 요소 "뒤"에 적용하기 때문에, 효과를 확인하려면 요소나 요소의 배경을 적어도 반투명하게는 설정해야 합니다. @@ -62,7 +63,7 @@ backdrop-filter: unset; font-family: sans-serif; text-align: center; line-height: 1; - -webkit-backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); max-width: 50%; max-height: 50%; @@ -76,7 +77,8 @@ body { } body { - background-image: url(https://picsum.photos/id/1080/6858/4574), linear-gradient(rgb(219, 166, 166), rgb(0, 0, 172)); + background-image: url(https://picsum.photos/id/1080/6858/4574), + linear-gradient(rgb(219, 166, 166), rgb(0, 0, 172)); background-position: center center; background-repeat: no-repeat; background-size: cover; diff --git a/files/ko/web/css/backface-visibility/index.md b/files/ko/web/css/backface-visibility/index.md index 641e120093d32d..c0a02e25b1b6f2 100644 --- a/files/ko/web/css/backface-visibility/index.md +++ b/files/ko/web/css/backface-visibility/index.md @@ -2,6 +2,7 @@ title: backface-visibility slug: Web/CSS/backface-visibility --- + {{CSSRef}} [CSS](/ko/docs/Web/CSS) **`backface-visibility`** 속성은 요소의 뒷면이 사용자를 향할 때 보여야 하는지 지정합니다. @@ -67,9 +68,8 @@ backface-visibility: unset;
- Since all faces are partially transparent, - the back faces (2, 4, 5) are visible - through the front faces (1, 3, 6). + Since all faces are partially transparent, the back faces (2, 4, 5) are + visible through the front faces (1, 3, 6).
- The three back faces (2, 4, 5) are - hidden. -
+The three back faces (2, 4, 5) are hidden.
- There were doors all round the hall, but they were all locked; and when - Alice had been all the way down one side and up the other, trying every - door, she walked sadly down the middle, wondering how she was ever to - get out again. + There were doors all round the hall, but they were all locked; and when Alice + had been all the way down one side and up the other, trying every door, she + walked sadly down the middle, wondering how she was ever to get out again.
``` @@ -78,19 +77,17 @@ p { ```html- There were doors all round the hall, but they were all locked; and when - Alice had been all the way down one side and up the other, trying every - door, she walked sadly down the middle, wondering how she was ever to - get out again. - - Suddenly she came upon a little three-legged table, all made of solid - glass; there was nothing on it except a tiny golden key, and Alice's - first thought was that it might belong to one of the doors of the hall; - but, alas! either the locks were too large, or the key was too small, - but at any rate it would not open any of them. However, on the second - time round, she came upon a low curtain she had not noticed before, and - behind it was a little door about fifteen inches high: she tried the - little golden key in the lock, and to her great delight it fitted! + There were doors all round the hall, but they were all locked; and when Alice + had been all the way down one side and up the other, trying every door, she + walked sadly down the middle, wondering how she was ever to get out again. + Suddenly she came upon a little three-legged table, all made of solid glass; + there was nothing on it except a tiny golden key, and Alice's first thought + was that it might belong to one of the doors of the hall; but, alas! either + the locks were too large, or the key was too small, but at any rate it would + not open any of them. However, on the second time round, she came upon a low + curtain she had not noticed before, and behind it was a little door about + fifteen inches high: she tried the little golden key in the lock, and to her + great delight it fitted!
``` @@ -98,8 +95,7 @@ p { ```css p { - background-image: url("starsolid.gif"), - url("startransparent.gif"); + background-image: url("starsolid.gif"), url("startransparent.gif"); background-attachment: fixed, scroll; background-repeat: no-repeat, repeat-y; } diff --git a/files/ko/web/css/background-clip/index.md b/files/ko/web/css/background-clip/index.md index 54e32246e4a12b..faf52c5eaf2c66 100644 --- a/files/ko/web/css/background-clip/index.md +++ b/files/ko/web/css/background-clip/index.md @@ -2,6 +2,7 @@ title: background-clip slug: Web/CSS/background-clip --- + {{CSSRef}} [CSS](/ko/docs/Web/CSS) **`background-clip`** 속성은 요소의 배경이 테두리, 안쪽 여백, 콘텐츠 상자 중 어디까지 차지할 지 지정합니다. @@ -50,8 +51,12 @@ background-clip: unset; ```htmlThe background extends behind the border.
-The background extends to the inside edge of the border.
-The background extends only to the edge of the content box.
++ The background extends to the inside edge of the border. +
++ The background extends only to the edge of the content box. +
The background is clipped to the foreground text.
``` @@ -59,7 +64,7 @@ background-clip: unset; ```css p { - border: .8em darkviolet; + border: 0.8em darkviolet; border-style: dotted double; margin: 1em 0; padding: 1.4em; @@ -68,14 +73,20 @@ p { text-decoration: underline; } -.border-box { background-clip: border-box; } -.padding-box { background-clip: padding-box; } -.content-box { background-clip: content-box; } +.border-box { + background-clip: border-box; +} +.padding-box { + background-clip: padding-box; +} +.content-box { + background-clip: content-box; +} .text { background-clip: text; -webkit-background-clip: text; - color: rgba(0,0,0,.2); + color: rgba(0, 0, 0, 0.2); } ``` diff --git a/files/ko/web/css/background-color/index.md b/files/ko/web/css/background-color/index.md index b13c12ed3bde68..8e67756ed04d8c 100644 --- a/files/ko/web/css/background-color/index.md +++ b/files/ko/web/css/background-color/index.md @@ -17,20 +17,20 @@ background-color: red; background-color: indigo; /* 16진수 값 */ -background-color: #bbff00; /* 완전 불투명 */ -background-color: #bf0; /* 완전 불투명 단축 */ -background-color: #11ffee00; /* 완전 투명 */ -background-color: #1fe0; /* 완전 투명 단축 */ -background-color: #11ffeeff; /* 완전 불투명 */ -background-color: #1fef; /* 완전 불투명 단축 */ +background-color: #bbff00; /* 완전 불투명 */ +background-color: #bf0; /* 완전 불투명 단축 */ +background-color: #11ffee00; /* 완전 투명 */ +background-color: #1fe0; /* 완전 투명 단축 */ +background-color: #11ffeeff; /* 완전 불투명 */ +background-color: #1fef; /* 완전 불투명 단축 */ /* RGB 값 */ -background-color: rgb(255, 255, 128); /* 완전 불투명 */ -background-color: rgba(117, 190, 218, 0.5); /* 50% 불투명도 */ +background-color: rgb(255, 255, 128); /* 완전 불투명 */ +background-color: rgba(117, 190, 218, 0.5); /* 50% 불투명도 */ /* HSL 값 */ -background-color: hsl(50, 33%, 25%); /* 완전 불투명 */ -background-color: hsla(50, 33%, 25%, 0.75); /* 75% 불투명도 */ +background-color: hsl(50, 33%, 25%); /* 완전 불투명 */ +background-color: hsla(50, 33%, 25%, 0.75); /* 75% 불투명도 */ /* 특별 키워드 값 */ background-color: currentcolor; @@ -72,17 +72,11 @@ background-color: unset; ### HTML ```html -
- This paragraph is full of cats
and stars.
-
This paragraph is full of cats
and stars.
This paragraph is not.
-
- Here are more cats for you.
Look at them!
-
Here are more cats for you.
Look at them!
And no more.
Browser | Layout Engine | -
---|---|
Firefox | Gecko | -
Internet Explorer | Trident | -
Safari | Webkit | -
Chrome | Blink | -
Opera | Blink | -
Browser | +Layout Engine | +
Firefox | +Gecko | +
Internet Explorer | +Trident | +
Safari | +Webkit | +
Chrome | +Blink | +
Opera | +Blink | +
Browser | Layout Engine | -
---|---|
Firefox | Gecko | -
Internet Explorer | Trident | -
Safari | Webkit | -
Chrome | Blink | -
Opera | Blink | -
Browser | +Layout Engine | +
Firefox | +Gecko | +
Internet Explorer | +Trident | +
Safari | +Webkit | +
Chrome | +Blink | +
Opera | +Blink | +
border-color: red;
는 아래와 같습니다.
border-top-color: red;
+ border-top-color: red;
border-right-color: red;
border-bottom-color: red;
border-left-color: red;
@@ -66,7 +68,8 @@ border-color: unset;
-
+
border-color: gold red;
는 아래와 같습니다.
border-top-color: gold;
+ border-top-color: gold;
border-right-color: red;
border-bottom-color: gold;
border-left-color: red;
@@ -74,7 +77,8 @@ border-color: unset;
-
+
border-color: red cyan gold;
는 아래와 같습니다.
border-top-color: red;
+ border-top-color: red;
border-right-color: cyan;
border-bottom-color: gold;
border-left-color: cyan;
@@ -82,7 +86,8 @@ border-color: unset;
-
+
border-color: red cyan black gold;
는 아래와 같습니다.
border-top-color: red;
+ border-top-color: red;
border-right-color: cyan;
border-bottom-color: black;
border-left-color: gold;
diff --git a/files/ko/web/css/border-image-outset/index.md b/files/ko/web/css/border-image-outset/index.md
index 62532b45c04d81..c3d65e343edcb3 100644
--- a/files/ko/web/css/border-image-outset/index.md
+++ b/files/ko/web/css/border-image-outset/index.md
@@ -69,7 +69,7 @@ border-image-outset: unset;
background: #cef;
border: 1.4rem solid;
border-image: radial-gradient(#ff2, #55f) 40;
- border-image-outset: 1.5; /* = 1.5 * 1.4rem = 2.1rem */
+ border-image-outset: 1.5; /* = 1.5 * 1.4rem = 2.1rem */
margin: 2.1rem;
}
```
diff --git a/files/ko/web/css/border-image-repeat/index.md b/files/ko/web/css/border-image-repeat/index.md
index b018911e94521c..fc4b544856aaa7 100644
--- a/files/ko/web/css/border-image-repeat/index.md
+++ b/files/ko/web/css/border-image-repeat/index.md
@@ -58,7 +58,7 @@ border-image-repeat: unset;
padding: 1rem;
border: 40px solid;
border-image: url("border.png") 27;
- border-image-repeat: stretch; /* 라이브 샘플에서 바꿀 수 있습니다 */
+ border-image-repeat: stretch; /* 라이브 샘플에서 바꿀 수 있습니다 */
}
```
@@ -78,7 +78,8 @@ border-image-repeat: unset;
```js hidden
var repetition = document.getElementById("repetition");
repetition.addEventListener("change", function (evt) {
- document.getElementById("bordered").style.borderImageRepeat = evt.target.value;
+ document.getElementById("bordered").style.borderImageRepeat =
+ evt.target.value;
});
```
diff --git a/files/ko/web/css/border-image-width/index.md b/files/ko/web/css/border-image-width/index.md
index 53c8e666d240b9..e665f2a86ab95a 100644
--- a/files/ko/web/css/border-image-width/index.md
+++ b/files/ko/web/css/border-image-width/index.md
@@ -72,10 +72,13 @@ border-image-width: unset;
### HTML
```html
-
-
+
밤을 쉬이 봄이 무성할 릴케 듯합니다. 토끼, 써 이런 하나에 듯합니다. 이네들은 나는 패, 듯합니다. - 나는 보고, 딴은 토끼, 이런 멀리 듯합니다. 청춘이 가을로 둘 버리었습니다. 걱정도 밤이 나는 애기 - 오는 언덕 경, 계십니다. 멀리 까닭이요, 나는 별빛이 듯합니다. 소녀들의 벌레는 걱정도 까닭이요, - 북간도에 쓸쓸함과 오면 것은 어머님, 까닭입니다.
++ 밤을 쉬이 봄이 무성할 릴케 듯합니다. 토끼, 써 이런 하나에 듯합니다. 이네들은 + 나는 패, 듯합니다. 나는 보고, 딴은 토끼, 이런 멀리 듯합니다. 청춘이 가을로 둘 + 버리었습니다. 걱정도 밤이 나는 애기 오는 언덕 경, 계십니다. 멀리 까닭이요, + 나는 별빛이 듯합니다. 소녀들의 벌레는 걱정도 까닭이요, 북간도에 쓸쓸함과 오면 + 것은 어머님, 까닭입니다. +
``` ### CSS diff --git a/files/ko/web/css/border-image/index.md b/files/ko/web/css/border-image/index.md index 271a4312778f59..89501fea998b9a 100644 --- a/files/ko/web/css/border-image/index.md +++ b/files/ko/web/css/border-image/index.md @@ -2,6 +2,7 @@ title: border-image slug: Web/CSS/border-image --- + {{CSSRef}} **`border-image`** [CSS](/ko/docs/Web/CSS) 속성은 요소의 주위에 이미지를 그립니다. 일반 [테두리](/ko/docs/Web/CSS/border)를 대체합니다. @@ -60,7 +61,9 @@ border-image: url("/images/border.png") 27 23 / 50px 30px / 1rem round space; #### HTML ```html -This is a box with a border around it. - Note which side of the box is - red.
++ This is a box with a border around it. Note which side of the box is + red. +
This is a box with a border around it. - Note which side of the box is - red.
++ This is a box with a border around it. Note which side of the box is + red. +
1 | 2 | 3 | +1 | +2 | +3 |
4 | 5 | 6 | +4 | +5 | +6 |
7 | 8 | 9 | +7 | +8 | +9 |
This is a box with a border around it. - Note which side of the box is - red.
++ This is a box with a border around it. Note which side of the box is + red. +
- 한 개의 값: 모든 네 면이 6px 테두리
-- 두 개의 다른 값: 위아래에 2px 테두리, 좌우에 10px 테두리
-- 세 개의 다른 값: 위에 0.3em, 아래에 9px, 좌우에 0
+한 개의 값: 모든 네 면이 6px 테두리
+두 개의 다른 값: 위아래에 2px 테두리, 좌우에 10px 테두리
+세 개의 다른 값: 위에 0.3em, 아래에 9px, 좌우에 0
- 네 개의 다른 값: "얇은" 위, "중간" 오른쪽, "두꺼운" 아래, 왼쪽 1em
+ 네 개의 다른 값: "얇은" 위, "중간" 오른쪽, "두꺼운" 아래, 왼쪽 1em + ``` #### CSS diff --git a/files/ko/web/css/box-shadow/index.md b/files/ko/web/css/box-shadow/index.md index 5f2e45c101524e..5337196cdf92cf 100644 --- a/files/ko/web/css/box-shadow/index.md +++ b/files/ko/web/css/box-shadow/index.md @@ -2,6 +2,7 @@ title: box-shadow slug: Web/CSS/box-shadow --- + {{ CSSRef }} `box-shadow` CSS 속성은 요소의 테두리를 감싼 그림자 효과를 추가합니다. 쉼표로 구문해서 여러 그림자 효과를 입힐 수 있습니다. 박스 그림자는 요소에서의 수평수직 거리(오프셋), 흐릿함과 확산 정도, 색상으로 이루어집니다. @@ -28,7 +29,9 @@ box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); box-shadow: inset 5em 1em gold; /* Any number of shadows, separated by commas */ -box-shadow: 3px 3px red, -1em 0 0.4em olive; +box-shadow: + 3px 3px red, + -1em 0 0.4em olive; /* Global keywords */ box-shadow: inherit; @@ -50,14 +53,19 @@ box-shadow: unset; ### 값 - `inset` + - : 값을 지정하지 않으면(기본값) 요소가 공중에 떠있는 것처럼 밖에 드리우는 그림자가 됩니다. `inset` 키워드가 존재하면 요소가 움푹 들어간 것처럼 그림자가 요소의 테두리 안, 배경색 위, 내부 콘텐츠 밑에 그려집니다. + - `+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet diam. Duis mattis varius dui. Suspendisse eget dolor.
++ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet + diam. Duis mattis varius dui. Suspendisse eget dolor. +
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
This paragraph clears left.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet diam. Duis mattis varius dui. Suspendisse eget dolor.
++ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet + diam. Duis mattis varius dui. Suspendisse eget dolor. +
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
This paragraph clears right.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet diam. Duis mattis varius dui. Suspendisse eget dolor. Fusce pulvinar lacus ac dui.
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet diam. Duis mattis varius dui. Suspendisse eget dolor.
++ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet + diam. Duis mattis varius dui. Suspendisse eget dolor. Fusce pulvinar lacus + ac dui. +
++ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus sit amet + diam. Duis mattis varius dui. Suspendisse eget dolor. +
This paragraph clears both.
- I LOVE
clipping
-
I LOVE
clipping
+
Assuming the following clipPath definition:
<svg> @@ -122,17 +127,18 @@ clip-path: unset; A 0.25,0.25,1,1,1,1,0.3 C 1,0.7,0.5,1,0.5,1 Z" /> </clipPath> -</svg>+</svg>
- I LOVE
clipping
-
I LOVE
clipping
- I LOVE
clipping
-
I LOVE
clipping