-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zh-cn: translate CSS-TOM Guide #25068
Conversation
Preview URLs
Flaws (86)URL:
URL:
URL:
(comment last updated: 2024-12-21 14:14:59) |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一些建议
- : `CSSStyleValue` 接口的 `parse()` 方法允许通过 CSS 字符串构造 `CSSNumericValue`。它将特定 CSS 属性设置为指定值,并将第一个值作为 `CSSStyleValue` 对象返回。 | ||
- {{domxref('CSSStyleValue.parseAll_static', 'CSSStyleValue.parseAll()')}} | ||
- : `CSSStyleValue` 接口的 `parseAll()` 方法将特定 CSS 属性的所有出现设置为指定值,并返回 `CSSStyleValue` 对象数组,每个对象包含一个提供的值。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最好去更新一下英文文档的样式(反馈到上游),我的想法是可以简化一下描述。例如,可以写成“Construct a CSSNumericValue
from a CSS string”。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上游是不是可以统一简化为:
“Method that allowed construct a CSSNumericValue
from a CSS string”
- : `StylePropertyMap` 接口的 `set` 方法,将具有给定属性的 CSS 声明更改为给定的值。 | ||
- {{domxref('StylePropertyMap.append()')}} | ||
- : `StylePropertyMap` 接口的 `append` 方法基于给定的属性和值,向 `StylePropertyMap` 添加新的 CSS 声明的方法。 | ||
- {{domxref('StylePropertyMap.delete()')}} | ||
- : `StylePropertyMap` 接口的 `delete` 方法,将从 `StylePropertyMap` 中删除具有给定属性的 CSS。 | ||
- {{domxref('StylePropertyMap.clear()')}} | ||
- : `StylePropertyMap` 接口的 `clear` 方法,将从 `StylePropertyMap` 删除所有声明。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同,现在的描述的废话有点多
Co-authored-by: A1lo <[email protected]>
Co-authored-by: A1lo <[email protected]>
Co-authored-by: A1lo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
translate CSS-TOM Guide
Motivation
Learning and translating
Additional details
None.
Related issues and pull requests
None.