-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zh-tw] add the translation of the global attribute
style
(#25526)
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: style | ||
slug: Web/HTML/Global_attributes/style | ||
l10n: | ||
sourceCommit: 476fb44932d56c0f50628a620348cd77f411b5ab | ||
--- | ||
|
||
{{HTMLSidebar("Global_attributes")}} | ||
|
||
**`style`** [全域屬性](/zh-TW/docs/Web/HTML/Global_attributes) 包含要應用於此元素的 [CSS](/zh-TW/docs/Web/CSS) 樣式宣告。請注意,建議將樣式定義在單獨的檔案中。此屬性和 {{HTMLElement("style")}} 元素主要目的是允許快速設定樣式,例如用於測試目的。 | ||
|
||
{{EmbedInteractiveExample("pages/tabbed/attribute-style.html","tabbed-shorter")}} | ||
|
||
> [!NOTE] | ||
> 此屬性不得用於傳達語義資訊。即使所有樣式都被移除,頁面也應該保持語義正確。通常不應該使用它來隱藏不相關的資訊;這應該使用 [`hidden`](/zh-TW/docs/Web/HTML/Global_attributes/hidden) 屬性來完成。 | ||
## 規範 | ||
|
||
{{Specifications}} | ||
|
||
## 瀏覽器相容性 | ||
|
||
{{Compat}} | ||
|
||
## 參見 | ||
|
||
- [全域屬性](/zh-TW/docs/Web/HTML/Global_attributes) | ||
- {{domxref("HTMLElement.style")}} |