From cce4f6a5c84cf30acc949b5113d417f1c55fd275 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 22 Jan 2022 21:05:49 +0900 Subject: 2022/01/18 時点の英語版に同期 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/zoom/index.md | 116 ++++++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 55 deletions(-) (limited to 'files') diff --git a/files/ja/web/css/zoom/index.md b/files/ja/web/css/zoom/index.md index f1b5d43695..dbd4fe2b32 100644 --- a/files/ja/web/css/zoom/index.md +++ b/files/ja/web/css/zoom/index.md @@ -4,68 +4,73 @@ slug: Web/CSS/zoom tags: - CSS - CSS プロパティ - - Microsoft 拡張 - - Non-standard - - WebKit 拡張 - - リファレンス - 標準外 + - リファレンス + - recipe:css-property +browser-compat: css.properties.zoom translation_of: Web/CSS/zoom --- -
{{CSSRef}}{{Non-standard_header}}
+{{CSSRef}}{{Non-standard_header}} -

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

+**_`zoom`_** は [CSS](/ja/docs/Web/CSS) の標準外のプロパティで、要素の拡大率を制御するために使用することができます。できれば、このプロパティの代わりに {{cssxref("transform-function/scale", "transform: scale()")}} を使用してください。ただし、 CSS 座標変換とは異なり、 `zoom` は要素のレイアウト時の大きさに影響します。 -
/* キーワード値 */
+```css
+/* キーワード値 */
 zoom: normal;
 zoom: reset;
 
-/* <percentage> 値 */
+/*  値 */
 zoom: 50%;
 zoom: 200%;
 
-/* <number> 値 */
+/*  値 */
 zoom: 1.1;
 zoom: 0.7;
 
 /* グローバル値 */
 zoom: inherit;
 zoom: initial;
-zoom: unset;
+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` よりも小さな値はズームアウトします。 -

+## 公式定義 -
-
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 よりも小さな値はズームアウトします。
-
+{{cssinfo}} -

形式文法

+## 形式文法 {{csssyntax}} -

+## 例 -

最初の例

+### 最初の例 -

HTML

+#### HTML -
<p class="small">Small</p>
-<p class="normal">Normal</p>
-<p class="big">Big</p>
+```html +

Small

+

Normal

+

Big

+``` -

CSS

+#### CSS -
p.small {
+```css
+p.small {
   zoom: 75%;
 }
 p.normal {
@@ -80,23 +85,26 @@ p {
 p:hover {
   zoom: reset;
 }
-
+``` -

結果

+#### 結果 -

{{EmbedLiveSample('First_example')}}

+{{EmbedLiveSample('First_example')}} -

2番目の例

+### 2 番目の例 -

HTML

+#### HTML -
<div id="a" class="circle"></div>
-<div id="b" class="circle"></div>
-<div id="c" class="circle"></div>
+```html +
+
+
+``` -

CSS

+#### CSS -
div.circle {
+```css
+div.circle {
   width: 25px;
   height: 25px;
   border-radius: 100%;
@@ -117,24 +125,22 @@ div#c {
   background-color: blue;
   zoom: 2.9;
 }
-
+``` -

結果

+#### 結果 -

{{EmbedLiveSample('Second_example')}}

+{{EmbedLiveSample('Second_example')}} -

仕様書

+## 仕様書 -

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

+標準には含まれていません。このプロパティは Internet Explorer を起源としています。 Apple は [Safari CSS Referenceで説明しています](https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-SW15)。マイクロソフトの Rossen Atanassov は [GitHub に非公式の仕様案を公開しています](https://cdn.rawgit.com/atanassov/css-zoom/master/Overview.html)。 -

ブラウザーの対応

+## ブラウザーの互換性 -

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

+{{Compat}} -

関連情報

+## 関連情報 - +- CSS-Tricks' CSS Almanac の [`zoom` の記事](https://css-tricks.com/almanac/properties/z/zoom/) +- `zoom` 記述子([`@viewport`](/ja/docs/Web/CSS/@viewport) で使用) +- [Bug 390936: Implement Internet Explorer `zoom` property for CSS](https://bugzilla.mozilla.org/show_bug.cgi?id=390936) on the Firefox issue tracker Bugzilla -- cgit v1.2.3-54-g00ecf