From af6cff355ee803e7cd66933b665fa7b3815104fc Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 22 Jan 2022 20:56:16 +0900 Subject: Web/CSS/zoom を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/zoom/index.html | 140 --------------------------------------- files/ja/web/css/zoom/index.md | 140 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+), 140 deletions(-) delete mode 100644 files/ja/web/css/zoom/index.html create mode 100644 files/ja/web/css/zoom/index.md (limited to 'files') diff --git a/files/ja/web/css/zoom/index.html b/files/ja/web/css/zoom/index.html deleted file mode 100644 index f1b5d43695..0000000000 --- a/files/ja/web/css/zoom/index.html +++ /dev/null @@ -1,140 +0,0 @@ ---- -title: zoom -slug: Web/CSS/zoom -tags: - - CSS - - CSS プロパティ - - Microsoft 拡張 - - Non-standard - - WebKit 拡張 - - リファレンス - - 標準外 -translation_of: Web/CSS/zoom ---- -
{{CSSRef}}{{Non-standard_header}}
- -

CSS の標準外の zoom プロパティは、要素の拡大率を制御するために使用することができます。できれば、このプロパティの代わりに {{cssxref("transform-function/scale", "transform: scale()")}} を使用してください。ただし、 CSS 変換とは異なり、 zoom は要素のレイアウト時の大きさに影響します。

- -
/* キーワード値 */
-zoom: normal;
-zoom: reset;
-
-/* <percentage> 値 */
-zoom: 50%;
-zoom: 200%;
-
-/* <number> 値 */
-zoom: 1.1;
-zoom: 0.7;
-
-/* グローバル値 */
-zoom: inherit;
-zoom: initial;
-zoom: unset;
- -

{{cssinfo}}

- -

構文

- -

- -
-
normal
-
要素を通常のサイズでレンダリングします。
-
reset {{non-standard_inline}}
-
ユーザーが非ピンチベースのズームを利用したときは (たとえばキーボードで Ctrl-- または Ctrl++ のショートカット) 要素を拡大しない。 WebKit (とおそらく Blink) のみサポートされています。
-
{{cssxref("<percentage>")}}
-
ズーム率です。 100%normal は等価です。 100% よりも大きな値はズームイン、 100%よりも小さな値はズームアウトします。
-
{{cssxref("<number>")}}
-
ズーム率です。対応するパーセンテージ (1.0 = 100% = normal) に相当します。 1.0 よりも大きな値はズームイン、 1.0 よりも小さな値はズームアウトします。
-
- -

形式文法

- -{{csssyntax}} - -

- -

最初の例

- -

HTML

- -
<p class="small">Small</p>
-<p class="normal">Normal</p>
-<p class="big">Big</p>
- -

CSS

- -
p.small {
-  zoom: 75%;
-}
-p.normal {
-  zoom: normal;
-}
-p.big {
-  zoom: 2.5;
-}
-p {
-  display: inline-block;
-}
-p:hover {
-  zoom: reset;
-}
-
- -

結果

- -

{{EmbedLiveSample('First_example')}}

- -

2番目の例

- -

HTML

- -
<div id="a" class="circle"></div>
-<div id="b" class="circle"></div>
-<div id="c" class="circle"></div>
- -

CSS

- -
div.circle {
-  width: 25px;
-  height: 25px;
-  border-radius: 100%;
-  text-align: center;
-  vertical-align: middle;
-  display: inline-block;
-  zoom: 1.5;
-}
-div#a {
-  background-color: gold;
-  zoom: normal;
-}
-div#b {
-  background-color: green;
-  zoom: 200%;
-}
-div#c {
-  background-color: blue;
-  zoom: 2.9;
-}
-
- -

結果

- -

{{EmbedLiveSample('Second_example')}}

- -

仕様書

- -

このプロパティは標準外であり、 Internet Explorer を起源としています。 Apple は Safari CSS Referenceで説明しています。マイクロソフトの Rossen Atanassov は GitHubに非公式の仕様案を公開しています

- -

ブラウザーの対応

- -

{{Compat("css.properties.zoom")}}

- -

関連情報

- - diff --git a/files/ja/web/css/zoom/index.md b/files/ja/web/css/zoom/index.md new file mode 100644 index 0000000000..f1b5d43695 --- /dev/null +++ b/files/ja/web/css/zoom/index.md @@ -0,0 +1,140 @@ +--- +title: zoom +slug: Web/CSS/zoom +tags: + - CSS + - CSS プロパティ + - Microsoft 拡張 + - Non-standard + - WebKit 拡張 + - リファレンス + - 標準外 +translation_of: Web/CSS/zoom +--- +
{{CSSRef}}{{Non-standard_header}}
+ +

CSS の標準外の zoom プロパティは、要素の拡大率を制御するために使用することができます。できれば、このプロパティの代わりに {{cssxref("transform-function/scale", "transform: scale()")}} を使用してください。ただし、 CSS 変換とは異なり、 zoom は要素のレイアウト時の大きさに影響します。

+ +
/* キーワード値 */
+zoom: normal;
+zoom: reset;
+
+/* <percentage> 値 */
+zoom: 50%;
+zoom: 200%;
+
+/* <number> 値 */
+zoom: 1.1;
+zoom: 0.7;
+
+/* グローバル値 */
+zoom: inherit;
+zoom: initial;
+zoom: unset;
+ +

{{cssinfo}}

+ +

構文

+ +

+ +
+
normal
+
要素を通常のサイズでレンダリングします。
+
reset {{non-standard_inline}}
+
ユーザーが非ピンチベースのズームを利用したときは (たとえばキーボードで Ctrl-- または Ctrl++ のショートカット) 要素を拡大しない。 WebKit (とおそらく Blink) のみサポートされています。
+
{{cssxref("<percentage>")}}
+
ズーム率です。 100%normal は等価です。 100% よりも大きな値はズームイン、 100%よりも小さな値はズームアウトします。
+
{{cssxref("<number>")}}
+
ズーム率です。対応するパーセンテージ (1.0 = 100% = normal) に相当します。 1.0 よりも大きな値はズームイン、 1.0 よりも小さな値はズームアウトします。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ +

最初の例

+ +

HTML

+ +
<p class="small">Small</p>
+<p class="normal">Normal</p>
+<p class="big">Big</p>
+ +

CSS

+ +
p.small {
+  zoom: 75%;
+}
+p.normal {
+  zoom: normal;
+}
+p.big {
+  zoom: 2.5;
+}
+p {
+  display: inline-block;
+}
+p:hover {
+  zoom: reset;
+}
+
+ +

結果

+ +

{{EmbedLiveSample('First_example')}}

+ +

2番目の例

+ +

HTML

+ +
<div id="a" class="circle"></div>
+<div id="b" class="circle"></div>
+<div id="c" class="circle"></div>
+ +

CSS

+ +
div.circle {
+  width: 25px;
+  height: 25px;
+  border-radius: 100%;
+  text-align: center;
+  vertical-align: middle;
+  display: inline-block;
+  zoom: 1.5;
+}
+div#a {
+  background-color: gold;
+  zoom: normal;
+}
+div#b {
+  background-color: green;
+  zoom: 200%;
+}
+div#c {
+  background-color: blue;
+  zoom: 2.9;
+}
+
+ +

結果

+ +

{{EmbedLiveSample('Second_example')}}

+ +

仕様書

+ +

このプロパティは標準外であり、 Internet Explorer を起源としています。 Apple は Safari CSS Referenceで説明しています。マイクロソフトの Rossen Atanassov は GitHubに非公式の仕様案を公開しています

+ +

ブラウザーの対応

+ +

{{Compat("css.properties.zoom")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf