diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:17 -0500 |
commit | da78a9e329e272dedb2400b79a3bdeebff387d47 (patch) | |
tree | e6ef8aa7c43556f55ddfe031a01cf0a8fa271bfe /files/ko/web/css/-moz-image-region/index.html | |
parent | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (diff) | |
download | translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.gz translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.tar.bz2 translated-content-da78a9e329e272dedb2400b79a3bdeebff387d47.zip |
initial commit
Diffstat (limited to 'files/ko/web/css/-moz-image-region/index.html')
-rw-r--r-- | files/ko/web/css/-moz-image-region/index.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/files/ko/web/css/-moz-image-region/index.html b/files/ko/web/css/-moz-image-region/index.html new file mode 100644 index 0000000000..1bc12db1e6 --- /dev/null +++ b/files/ko/web/css/-moz-image-region/index.html @@ -0,0 +1,54 @@ +--- +title: '-moz-image-region' +slug: Web/CSS/-moz-image-region +tags: + - CSS + - CSS Property + - 'CSS:Mozilla Extensions' + - Non-standard +translation_of: Web/CSS/-moz-image-region +--- +<div>{{CSSRef}}{{Non-standard_header}}</div> + +<p>XUL 요소와 가상요소들에 대하여 {{ Cssxref("list-style-image") }} 속성을 사용할때 이 속성은 전체이미지에서 사용되는 부분의 령역을 지정합니다. 이것은 요소들이 성능을 향상시키기 위해 같은 이미지의 서로다른 부분을 사용할수 있게 합니다.</p> + +<pre class="brush: css">/* Keyword value */ +-moz-image-region: auto; + +/* <shape> value */ +-moz-image-region: rect(0, 8px, 4px, 4px); + +/* Global values */ +-moz-image-region: inherit; +-moz-image-region: initial; +-moz-image-region: unset;</pre> + +<p> </p> + +<p>문법은 {{ Cssxref("clip") }}속성과 류사합니다. 4개의 값은 모두 이미지의 외쪽 웃모서리로부터 상대적입니다.</p> + +<p>{{cssinfo}}</p> + +<h2 id="Syntax" name="Syntax">구문</h2> + +<pre>-moz-image-region: rect(<em>top</em>, <em>right</em>, <em>bottom</em>, <em>left</em>);</pre> + +<h3 id="형식_구문">형식 구문</h3> + +<pre class="syntaxbox">{{CSSSyntax}}</pre> + +<h2 id="Examples" name="Examples">예제</h2> + +<pre>#example-button { + /* display only the 4x4 area from the top left of this image */ + list-style-image: url("chrome://example/skin/example.png"); + -moz-image-region: rect(0px, 4px, 4px, 0px); +} +#example-button:hover { + /* use the 4x4 area to the right of the first for the hovered button */ + -moz-image-region: rect(0px, 8px, 4px, 4px); +}</pre> + +<h2 id="브라우저_호환성">브라우저 호환성</h2> + +<p>{{Compat("css.properties.-moz-image-region")}}</p> |