diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/styles-and-resources/troubleshooting.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/styles-and-resources/troubleshooting.md index d360ccb01..18cc7b8c6 100644 --- a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/styles-and-resources/troubleshooting.md +++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/styles-and-resources/troubleshooting.md @@ -122,8 +122,6 @@ _Avalonia UI_ 的选择器,就像 CSS 选择器一样,当没有匹配的控 ``` -The actual background is rendered by a `ContentPresenter`, which in the default is bound to the Buttons `Background` property. However in the pointer-over state the selector is directly applying the background to the `ContentPresenter (Button:pointerover /template/ ContentPresenter#PART_ContentPresenter`) That's why when our setter was ignored in the previous code example. The corrected code should target content presenter directly as well: - 实际背景是由 `ContentPresenter` 渲染的,在默认情况下它与按钮的 `Background` 属性绑定。然而,在 pointerover 状态下,选择器直接将背景应用于 `ContentPresenter (Button:pointerover /template/ ContentPresenter#PART_ContentPresenter)`。这就是为什么在前一个代码示例中我们的 setter 被忽略的原因。修正后的代码应该直接针对 content presenter: ```markup