Skip to content

Commit

Permalink
[zh-cn]: update the translation of SVG <view> element (#25767)
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
T34-active and yin1999 authored Feb 17, 2025
1 parent 444af6f commit 2e0a567
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions files/zh-cn/web/svg/element/view/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@
title: <view>
slug: Web/SVG/Element/view
l10n:
sourceCommit: b439985acb7c71d271115723522aa55cc7a43cbe
sourceCommit: eb2d8ffb82c8a6fa4e55aad2835215ffada25897
---

{{SVGRef}}

`<view>` SVG 元素定义了 SVG 文档的特定视图。可以通过将 `<view>` 元素的 [`id`](/zh-CN/docs/Web/HTML/Global_attributes/id) 作为 URL 的目标片段来显示特定的视图。
**`<view>`** [SVG](/zh-CN/docs/Web/SVG) 元素定义了 SVG 文档的特定视图。可以通过将 `<view>` 元素的 [`id`](/zh-CN/docs/Web/HTML/Global_attributes/id) 作为 URL 的目标片段来显示特定的视图。

## 使用上下文

{{svginfo}}

## 属性

- {{SVGAttr("viewBox")}}
- {{SVGAttr("preserveAspectRatio")}}
- : 该属性定义了当 SVG 片段嵌入到具有不同{{glossary("aspect ratio", "纵横比")}}的容器中时应如何变形。_值类型_:(`none`|`xMinYMin`|`xMidYMin`|`xMaxYMin`|`xMinYMid`|`xMidYMid`|`xMaxYMid`|`xMinYMax`|`xMidYMax`|`xMaxYMax`) (`meet`|`slice`)?;_默认值_`xMidYMid meet`_动画性_****
- {{SVGAttr("viewBox")}}
- : 该属性定义了模式片段的 SVG 视口边界。_值类型_[**\<list-of-numbers>**](/zh-CN/docs/Web/SVG/Content_type#t_值数列)_默认值_:无;_动画性_****
- {{SVGAttr("zoomAndPan")}} {{Deprecated_Inline}} {{Non-standard_Inline}}
- : 此属性指定 SVG 文档是否可以被放大和平移。_值类型_**disable | magnify**_默认值_:magnify;_动画性_****

## 示例

Expand Down Expand Up @@ -50,10 +53,6 @@ l10n:

{{EmbedLiveSample("示例", "85ch", "240px")}}

## DOM 接口

此元素实现了 {{domxref("SVGViewElement")}} 接口。

## 规范

{{Specifications}}
Expand Down

0 comments on commit 2e0a567

Please sign in to comment.