-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: csscounterstyle-suffix 번역 * fix: 온점 하나 제거 * fix: renamed word decorator
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "CSSCounterStyleRule: suffix 속성" | ||
slug: Web/API/CSSCounterStyleRule/suffix | ||
l10n: | ||
sourceCommit: 59b1cd1f520971b89ccf521d53a1d9d3bf4c0756 | ||
--- | ||
|
||
{{APIRef("CSS Counter Styles")}} | ||
|
||
{{domxref("CSSCounterStyleRule")}} 인터페이스의 **`suffix`** 속성은 {{cssxref("@counter-style/suffix","suffix")}} 설명자의 값을 호출하거나 지정합니다. 만일 설명자에 지정된 값이 없다면, 이 속성은 빈 문자열을 반환합니다. | ||
|
||
## 값 | ||
|
||
문자열입니다. | ||
|
||
## 예제 | ||
|
||
다음 예제는 {{cssxref("@counter-style")}} 의 규칙을 보여줍니다. JavaScript에서, `myRules[0]` 은 이 `@counter-style` 규칙이며, `suffix` 를 반환하면 ": " 값을 얻을 수 있습니다. | ||
|
||
```css | ||
@counter-style box-corner { | ||
system: fixed; | ||
symbols: ◰ ◳ ◲ ◱; | ||
suffix: ": "; | ||
negative: "-"; | ||
} | ||
``` | ||
|
||
```js | ||
let myRules = document.styleSheets[0].cssRules; | ||
console.log(myRules[0].suffix); // ": " | ||
``` | ||
|
||
## 명세서 | ||
|
||
{{Specifications}} | ||
|
||
## 브라우저 호환성 | ||
|
||
{{Compat}} |