From e9bb21320278d88f6795525b4bb6c91b90711fcc Mon Sep 17 00:00:00 2001 From: tristantheb Date: Wed, 21 Apr 2021 16:21:07 +0200 Subject: KS: Removal of the least used macros --- files/zh-tw/mdn/guidelines/writing_style_guide/index.html | 2 +- files/zh-tw/mozilla/firefox/releases/4/index.html | 2 -- .../api/canvas_api/tutorial/applying_styles_and_colors/index.html | 4 +--- .../web/api/file/using_files_from_web_applications/index.html | 2 -- .../web/api/html_drag_and_drop_api/drag_operations/index.html | 2 -- files/zh-tw/web/api/messageevent/index.html | 1 - files/zh-tw/web/api/permissions_api/index.html | 3 +-- files/zh-tw/web/api/websocket/index.html | 2 -- files/zh-tw/web/api/websockets_api/index.html | 8 ++------ .../web/css/css_transitions/using_css_transitions/index.html | 3 --- files/zh-tw/web/guide/html/html5/index.html | 4 ---- 11 files changed, 5 insertions(+), 28 deletions(-) (limited to 'files/zh-tw') diff --git a/files/zh-tw/mdn/guidelines/writing_style_guide/index.html b/files/zh-tw/mdn/guidelines/writing_style_guide/index.html index 39d4d22e9a..c9ee99400a 100644 --- a/files/zh-tw/mdn/guidelines/writing_style_guide/index.html +++ b/files/zh-tw/mdn/guidelines/writing_style_guide/index.html @@ -71,7 +71,7 @@ translation_of: MDN/Guidelines/Writing_style_guide
警告:同樣,“警告”樣式用於創建警告框,就像這樣。
-

除非有明確指令,否則請勿使用 HTML 的 style 屬性來手動更改內容的風格。如果你無法使用預先定義的 class 來達成目的,就將他丟到 {{IRCLink("mdn")}} 以尋求協助。

+

除非有明確指令,否則請勿使用 HTML 的 style 屬性來手動更改內容的風格。如果你無法使用預先定義的 class 來達成目的,就將他丟到 Matrix 以尋求協助。

範例程式的樣式與格式

diff --git a/files/zh-tw/mozilla/firefox/releases/4/index.html b/files/zh-tw/mozilla/firefox/releases/4/index.html index 394f07815e..0a4a109f06 100644 --- a/files/zh-tw/mozilla/firefox/releases/4/index.html +++ b/files/zh-tw/mozilla/firefox/releases/4/index.html @@ -6,8 +6,6 @@ translation_of: Mozilla/Firefox/Releases/4
{{FirefoxSidebar}}

2010 年六月起進入 Beta 測試期的 Firefox 4,增進了效能、加強針對 HTML 5 及其他創新網際科技的支援程度,也更加安全。本文為網頁、附加元件、Gecko 平台開發者們提供這一版的簡要技術相關資訊。

-

{{ gecko_callout_heading("2") }}

-

Gecko 1.9.3 即將更名為 Gecko 2,但許多文件還沒有針對此點更新,在接下來的幾個星期中才會有所更動。

diff --git a/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html b/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html index 65e2a5055d..6a16a2aaad 100644 --- a/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html +++ b/files/zh-tw/web/api/canvas_api/tutorial/applying_styles_and_colors/index.html @@ -633,9 +633,7 @@ var ptrn = ctx.createPattern(img,'repeat');

shadowOffsetX和shadowOffsetY會決定陰影延伸大小,若是為正值,則陰影會往右(沿X軸)和往下(沿Y軸)延伸,若是為負值,則會往正值相反方向延伸。

-

{{gecko_callout_heading("7.0")}}

- -

Note: 基於HTML5提議規格變更,從{{Gecko("7.0")}}開始,陰影只會在source-over的構圖排列下產生

+

Note: 基於HTML5提議規格變更,從 開始,陰影只會在source-over的構圖排列下產生

文字陰影範例

diff --git a/files/zh-tw/web/api/file/using_files_from_web_applications/index.html b/files/zh-tw/web/api/file/using_files_from_web_applications/index.html index 52bd1928b3..cf9719ccd2 100644 --- a/files/zh-tw/web/api/file/using_files_from_web_applications/index.html +++ b/files/zh-tw/web/api/file/using_files_from_web_applications/index.html @@ -407,5 +407,3 @@ function handleFiles(files) {
  • Using the DOM File API in chrome code
  • {{domxref("XMLHttpRequest")}}
  • - -

    {{ HTML5ArticleTOC() }}

    diff --git a/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html b/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html index c609d6f4d4..bc61aeeb4c 100644 --- a/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html +++ b/files/zh-tw/web/api/html_drag_and_drop_api/drag_operations/index.html @@ -119,8 +119,6 @@ dt.setData("text/plain", "http://www.mozilla.org");

    上面我們的canvas是50 x 50px大小,然後我們位移一半25讓圖片落在滑鼠指標中央。 

    -

    {{h2_gecko_minversion("使用XUL panel元素作為拖曳圖片", "9.0")}}

    -

    在Gecko上開發,比如說外掛或Mozllia應用程式,Gecko9.0{{geckoRelease("9.0")}}支援使用{{XULElem("panel")}}元素作為拖曳圖片,簡單將XUL panel元素傳入setDragImage方法即可。

    試想下面這個 {{XULElem("panel")}}元素:

    diff --git a/files/zh-tw/web/api/messageevent/index.html b/files/zh-tw/web/api/messageevent/index.html index 4379f0fd00..79cae0574c 100644 --- a/files/zh-tw/web/api/messageevent/index.html +++ b/files/zh-tw/web/api/messageevent/index.html @@ -75,7 +75,6 @@ original_slug: WebSockets/WebSockets_reference/MessageEvent

    Gecko 備註

    -

    {{ gecko_callout_heading("6.0") }}

    此時此刻,Gecko 不支援 ArrayBuffer 或 {{ domxref("Blob") }} 作為 data

    {{ languages ( {"en": "en/WebSockets/WebSockets_reference/MessageEvent"} ) }}

    diff --git a/files/zh-tw/web/api/permissions_api/index.html b/files/zh-tw/web/api/permissions_api/index.html index 919e053cf8..c9dda01311 100644 --- a/files/zh-tw/web/api/permissions_api/index.html +++ b/files/zh-tw/web/api/permissions_api/index.html @@ -4,9 +4,8 @@ slug: Web/API/Permissions_API translation_of: Web/API/Permissions_API original_slug: WebAPI/Permissions --- +

    {{DefaultAPISidebar("Permissions API")}}

    {{ draft() }}

    -

    {{ non-standard_header }}

    -

    {{ B2GOnlyHeader2('certified') }}

    摘要

    Permissions API 可顯示 Apps 所要求的所有權限,以利使用者管理。Apps 可透過此 API 而讀取其他 Apps 的權限並進一步變更。

    透過 PermissionSettings 介面的 navigator.mozPermissionSettings 屬性,即可存取 Permission Manager。

    diff --git a/files/zh-tw/web/api/websocket/index.html b/files/zh-tw/web/api/websocket/index.html index cd92f4fd7a..8a8c14f3cb 100644 --- a/files/zh-tw/web/api/websocket/index.html +++ b/files/zh-tw/web/api/websocket/index.html @@ -189,8 +189,6 @@ void send(
    註釋
    -

    {{ gecko_callout_heading("6.0") }}

    -

    Gecko send() 方法的實作與 Gecko 6.0 的規範有差別。Gecko 回傳一個 boolean 以表示連線是否仍處於開啟狀態(且資料成功隊列/傳輸)。另外,此時此刻,Gecko 不支援 ArrayBuffer 或 {{ domxref("Blob") }} 作為資料形態。

    diff --git a/files/zh-tw/web/api/websockets_api/index.html b/files/zh-tw/web/api/websockets_api/index.html index 49adb03bd0..56f850a44f 100644 --- a/files/zh-tw/web/api/websockets_api/index.html +++ b/files/zh-tw/web/api/websockets_api/index.html @@ -142,14 +142,10 @@ original_slug: WebSockets

    Gecko 附註

    Firefox 的 WebSockets 支援正在持續追蹤發展中的 WebSocket 規範。Firefox 6 實作底層協定版號 7,Firefox 7 實作協定版號 8(IETF 草案 10 的內容)。Firefox mobile 在 7.0 版支援 WebSocket。

    -

    {{ gecko_callout_heading("6.0") }}

    -

    Gecko 6.0 {{ geckoRelease("6.0") }} 之前,不該存在的 WebSocket 物件使得某些開發者認為 WebSocket 服務沒有前輟,此物件已被更名為 MozWebSocket

    +

    Gecko 6.0 之前,不該存在的 WebSocket 物件使得某些開發者認為 WebSocket 服務沒有前輟,此物件已被更名為 MozWebSocket

    -

    {{ gecko_callout_heading("7.0") }}

    -

    自從 Gecko 7.0 {{ geckoRelease("7.0") }},偏好設定 network.websocket.max-connections 可以用來設定 WebSocket 連線同時開啟的最大個數。預設值為 200。

    +

    自從 Gecko 7.0,偏好設定 network.websocket.max-connections 可以用來設定 WebSocket 連線同時開啟的最大個數。預設值為 200。

    警告:雖然不是唯一的理由,但是目前 WebSockets 被 Firefox 4 與 5 禁用的關鍵原因是一個協定設計上的安全問題,因此不建議在生產環境下使用這些 Firefox 版本的 WebSockets。若仍想測試 WebSockets,你可以開啟 about:config 並設定 network.websocket.enabled 的取值至 true,並需要同時設定 network.websocket.override-security-block 的取值至 true 才能允許 WebSocket 連線的初始化。
    -

    {{ HTML5ArticleTOC() }}

    -

    {{ languages ( {"en": "en/WebSockets", "es": "es/WebSockets"} ) }}

    diff --git a/files/zh-tw/web/css/css_transitions/using_css_transitions/index.html b/files/zh-tw/web/css/css_transitions/using_css_transitions/index.html index ecbdf92487..ad2277bb19 100644 --- a/files/zh-tw/web/css/css_transitions/using_css_transitions/index.html +++ b/files/zh-tw/web/css/css_transitions/using_css_transitions/index.html @@ -377,8 +377,5 @@ translation_of: Web/CSS/CSS_Transitions/Using_CSS_transitions
  • {{ cssxref("-moz-transition-timing-function") }}
  • {{ cssxref("-moz-transition-delay") }}
  • -

    {{ HTML5ArticleTOC() }}

    -

    {{ languages( { "es": "es/CSS/Transiciones_de_CSS", "ja": "ja/CSS/CSS_transitions" } ) }}

    -

     

    diff --git a/files/zh-tw/web/guide/html/html5/index.html b/files/zh-tw/web/guide/html/html5/index.html index 7e6bef7442..0e1ec8d54a 100644 --- a/files/zh-tw/web/guide/html/html5/index.html +++ b/files/zh-tw/web/guide/html/html5/index.html @@ -106,7 +106,3 @@ translation_of: Web/Guide/HTML/HTML5
  • Firefox 2 技術文件
  • Firefox 1.5 技術文件
  • - -

    {{ HTML5ArticleTOC() }}

    - -

    {{ languages( {"es": "es/HTML/HTML5", "fr": "fr/HTML/HTML5", "ja": "ja/HTML/HTML5" , "ko": "ko/HTML/HTML5" , "pt": "pt/HTML/HTML5", "zh-cn": "cn/HTML/HTML5", "zh-tw": "zh_tw/HTML/HTML5", "pt-br": "pt-br/HTML/HTML5"} ) }}

    -- cgit v1.2.3-54-g00ecf