aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/api
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-tw/web/api')
-rw-r--r--files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html8
-rw-r--r--files/zh-tw/web/api/document/execcommand/index.html2
-rw-r--r--files/zh-tw/web/api/document/keyup_event/index.html4
-rw-r--r--files/zh-tw/web/api/file/index.html2
-rw-r--r--files/zh-tw/web/api/file/using_files_from_web_applications/index.html4
-rw-r--r--files/zh-tw/web/api/html_drag_and_drop_api/index.html2
-rw-r--r--files/zh-tw/web/api/node/nodetype/index.html2
-rw-r--r--files/zh-tw/web/api/notification/index.html2
-rw-r--r--files/zh-tw/web/api/server-sent_events/using_server-sent_events/index.html2
-rw-r--r--files/zh-tw/web/api/web_workers_api/using_web_workers/index.html2
-rw-r--r--files/zh-tw/web/api/webvr_api/index.html2
11 files changed, 13 insertions, 19 deletions
diff --git a/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html b/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html
index 96fe2b9615..d6bd582c16 100644
--- a/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html
+++ b/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html
@@ -9,12 +9,6 @@ translation_of: Web/API/Canvas_API/Tutorial/Drawing_shapes
<p><img alt="" class="internal" src="https://mdn.mozillademos.org/files/224/Canvas_default_grid.png" style="float: right; height: 220px; width: 220px;">在開始繪圖前,我們必須先了解畫布 (canvas) 網格,或著是說座標空間。在前一頁教學中的 HTML 範本有一個寬150 pixels (像素)、高150 pixels 的畫布。如右圖,你在畫布預設網格上繪圖,網格上 1 單位相當於畫布上 1 pixel,網格的原點 (座標 (0, 0) ) 坐落於左上角,所有元素定位皆相對於此左上角原點,所以藍色方塊的位置為從左往右推 x pixels、從上往下推 y pixels (亦即座標 (x, y) )。現在我們先專注在預設設定上,之後我們會看到如何轉換原點位置、旋轉網格以及縮放網格。</p>
-<p> </p>
-
-<p> </p>
-
-<p> </p>
-
<h2 id="畫矩形">畫矩形</h2>
<p>不同於<a href="/en-US/docs/SVG" rel="internal" title="en/SVG">SVG</a>,{{HTMLElement("canvas")}}只支援一種原始圖形,矩形。所有的圖形都必須由一或多個繪圖路徑構成,而我們正好有一些繪圖路徑函數可以讓我們畫出複雜的圖形。</p>
@@ -173,7 +167,7 @@ translation_of: Web/API/Canvas_API/Tutorial/Drawing_shapes
<p>移除moveTo()便可以看到線條連結起來。</p>
<div class="note">
-<p><strong>Note:</strong> 有關arc(),請參照下方 {{anch("Arcs")}} .</p>
+<p><strong>Note:</strong> 有關arc(),請參照下方<a href="#弧形">弧形</a>。</p>
</div>
<h3 id="線條">線條</h3>
diff --git a/files/zh-tw/web/api/document/execcommand/index.html b/files/zh-tw/web/api/document/execcommand/index.html
index c06cd0d89c..2b85a02bfb 100644
--- a/files/zh-tw/web/api/document/execcommand/index.html
+++ b/files/zh-tw/web/api/document/execcommand/index.html
@@ -26,7 +26,7 @@ translation_of: Web/API/Document/execCommand
<dl>
<dt><code>aCommandName</code></dt>
- <dd>一個 {{domxref("DOMString")}} 作為指定要執行的指令。所有可用的指令列表請見 {{anch("Commands")}} 。</dd>
+ <dd>一個 {{domxref("DOMString")}} 作為指定要執行的指令。所有可用的指令列表請見 <a href="#指令">指令</a> 。</dd>
<dt><code>aShowDefaultUI</code></dt>
<dd>一個 {{jsxref("Boolean")}} 作為指示是否顯示預設的使用者介面。 Mozilla 並未實作這項功能。</dd>
<dt><code>aValueArgument</code></dt>
diff --git a/files/zh-tw/web/api/document/keyup_event/index.html b/files/zh-tw/web/api/document/keyup_event/index.html
index 3568b30c18..34e82ab7f2 100644
--- a/files/zh-tw/web/api/document/keyup_event/index.html
+++ b/files/zh-tw/web/api/document/keyup_event/index.html
@@ -78,7 +78,7 @@ translation_of: Web/API/Document/keyup_event
<tr>
<td><code>key</code> {{readonlyInline}}</td>
<td>DOMString (string)</td>
- <td>The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the <code>char</code> attribute. Otherwise, it's one of the key value strings specified in {{ anch("Key values") }}. If the key can't be identified, this is the string "Unidentified". See <a href="/en-US/docs/Web/API/KeyboardEvent#Key_names_and_Char_values">key names and char values</a> for the detail. Read Only.</td>
+ <td>The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the <code>char</code> attribute. Otherwise, it's one of the key value strings specified in <a href="#key_values">Key values</a>. If the key can't be identified, this is the string "Unidentified". See <a href="/en-US/docs/Web/API/KeyboardEvent#Key_names_and_Char_values">key names and char values</a> for the detail. Read Only.</td>
</tr>
<tr>
<td><code>charCode</code> {{readonlyInline}}</td>
@@ -90,7 +90,7 @@ translation_of: Web/API/Document/keyup_event
<tr>
<td><code>keyCode</code> {{readonlyInline}}</td>
<td>Unsigned long (int)</td>
- <td>A system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII ({{ RFC(20) }}) or Windows 1252 code corresponding to the key; see {{ anch("Virtual key codes") }} for a list of common values. If the key can't be identified, this value is 0.
+ <td>A system and implementation dependent numerical code identifying the unmodified value of the pressed key. This is usually the decimal ASCII ({{ RFC(20) }}) or Windows 1252 code corresponding to the key; see <a href="#virtual_key_codes">Virtual key codes</a> for a list of common values. If the key can't be identified, this value is 0.
<div class="warning"><strong>Warning:</strong> This attribute is deprecated; you should use <code>key</code> instead, if available.</div>
</td>
</tr>
diff --git a/files/zh-tw/web/api/file/index.html b/files/zh-tw/web/api/file/index.html
index 0dce936ff8..e295764aa8 100644
--- a/files/zh-tw/web/api/file/index.html
+++ b/files/zh-tw/web/api/file/index.html
@@ -18,7 +18,7 @@ translation_of: Web/API/File
<p><strong><code>File</code></strong> 介面提供了檔案的資訊並且允許網頁中的 JavaScript 存取檔案的內容。</p>
-<p><code>File</code> 物件通常是從使用者於 {{HTMLElement("input")}} 元素選擇之檔案所回傳的 {{domxref("FileList")}} 物件當中取得,也可以來自<a href="/zh-TW/docs/Web/Guide/HTML/Drag_and_drop">拖放操作</a>所產生的 {{domxref("DataTransfer")}} 物件之中,或是由 {{domxref("HTMLCanvasElement")}} 物件(元素物件)執行 <code>mozGetAsFile()</code> 方法後回傳。在 Gecko 引擎中,有專屬的程式碼能不需使用者操作即建立 <code>File</code> 物件來表示本地端的任一檔案(請參考 {{anch("Implementation notes")}} 以閱讀更多資訊)。</p>
+<p><code>File</code> 物件通常是從使用者於 {{HTMLElement("input")}} 元素選擇之檔案所回傳的 {{domxref("FileList")}} 物件當中取得,也可以來自<a href="/zh-TW/docs/Web/Guide/HTML/Drag_and_drop">拖放操作</a>所產生的 {{domxref("DataTransfer")}} 物件之中,或是由 {{domxref("HTMLCanvasElement")}} 物件(元素物件)執行 <code>mozGetAsFile()</code> 方法後回傳。在 Gecko 引擎中,有專屬的程式碼能不需使用者操作即建立 <code>File</code> 物件來表示本地端的任一檔案(請參考 <a href="#implementation_notes">Implementation notes</a> 以閱讀更多資訊)。</p>
<p><code>File</code> 物件是一種特殊的 {{domxref("Blob")}},且可被用在任何接受 Blob 物件的地方。特別是 {{domxref("FileReader")}}、{{domxref("URL.createObjectURL()")}}、{{domxref("ImageBitmapFactories.createImageBitmap()", "createImageBitmap()")}} 和 {{domxref("XMLHttpRequest", "", "send()")}} 都能夠同樣接受 <code>Blob</code> 以及 <code>File</code>。</p>
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 cf9719ccd2..cfcb654de0 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
@@ -5,7 +5,7 @@ tags:
- 待翻譯
translation_of: Web/API/File/Using_files_from_web_applications
---
-<p> {{ gecko_minversion_header("1.9.2") }}</p>
+<p>{{ gecko_minversion_header("1.9.2") }}</p>
<p>現在可以透過新增至HTML5 DOM的File API讓web內容要求使用者選取本地端的檔案後讀取被選取檔案中的內容。檔案的選取動作可以使用HTML的 <a href="/en/DOM/HTMLInputElement" title="en/DOM/Input"><code>input</code></a> 元素,或是用拖曳檔案(drag and drop)的方式來完成。</p>
@@ -228,7 +228,7 @@ function dragover(e) {
&lt;/div&gt;
</pre>
-<p>This establishes our file {{ HTMLElement("input") }} element, as well as a link that invokes the file picker, since we keep the file input hidden to prevent that less-than-attractive UI from being displayed. This is explained above in the section {{ anch("Using hidden file input elements using the click() method") }}, as is the <code>doClick()</code> method that invokes the file picker.</p>
+<p>This establishes our file {{ HTMLElement("input") }} element, as well as a link that invokes the file picker, since we keep the file input hidden to prevent that less-than-attractive UI from being displayed. This is explained above in the section <a href="#使用click()_方法隱藏檔案輸入元素">Using hidden file input elements using the click() method</a>, as is the <code>doClick()</code> method that invokes the file picker.</p>
<p>The <code>handleFiles()</code> method follows:</p>
diff --git a/files/zh-tw/web/api/html_drag_and_drop_api/index.html b/files/zh-tw/web/api/html_drag_and_drop_api/index.html
index 5c47136d42..6de4bc08d7 100644
--- a/files/zh-tw/web/api/html_drag_and_drop_api/index.html
+++ b/files/zh-tw/web/api/html_drag_and_drop_api/index.html
@@ -73,7 +73,7 @@ translation_of: Web/API/HTML_Drag_and_Drop_API
<p>HTML 拖放介面有 {{domxref("DragEvent")}}、{{domxref("DataTransfer")}}、{{domxref("DataTransferItem")}} 以及 {{domxref("DataTransferItemList")}}。</p>
-<p>{{domxref("DragEvent")}} 介面擁有一個建構式及一個屬性-{{domxref("DragEvent.dataTransfer","dataTransfer")}} 屬性為一個 {{domxref("DataTransfer")}} 物件。{{domxref("DataTransfer")}} 物件包含了拖放事件的狀態,如正在進行的拖放事件類型(例如 <code>copy</code> 或 <code>move</code>)、拖放中的資料(一或多個項目)以及每一個<em>拖放項目(drag item)</em>的檔案類型(MIME type)。{{domxref("DataTransfer")}} 物件也擁有加入及移除拖放資料項目的方法。{{domxref("DragEvent")}} 與 {{domxref("DataTransfer")}} 介面應該是唯一須要加至應用程式中的 HTML 拖放功能。另外,請留意 Firefox 支援了一些 {{anch("Gecko specific interfaces","Gecko-specific 擴充")}}予 {{domxref("DataTransfer")}} 物件使用,雖然這些擴充只能在 Firefox 上作用。</p>
+<p>{{domxref("DragEvent")}} 介面擁有一個建構式及一個屬性-{{domxref("DragEvent.dataTransfer","dataTransfer")}} 屬性為一個 {{domxref("DataTransfer")}} 物件。{{domxref("DataTransfer")}} 物件包含了拖放事件的狀態,如正在進行的拖放事件類型(例如 <code>copy</code> 或 <code>move</code>)、拖放中的資料(一或多個項目)以及每一個<em>拖放項目(drag item)</em>的檔案類型(MIME type)。{{domxref("DataTransfer")}} 物件也擁有加入及移除拖放資料項目的方法。{{domxref("DragEvent")}} 與 {{domxref("DataTransfer")}} 介面應該是唯一須要加至應用程式中的 HTML 拖放功能。另外,請留意 Firefox 支援了一些 <a href="#gecko-specific_interfaces">Gecko-specific 擴充</a>予 {{domxref("DataTransfer")}} 物件使用,雖然這些擴充只能在 Firefox 上作用。</p>
<p>每個 {{domxref("DataTransfer")}} 物件都包含了 {{domxref("DataTransfer.items","items")}} 屬性。此屬性乃 {{domxref("DataTransferItem")}} 物件的 {{domxref("DataTransferItemList","list")}}。而每個 {{domxref("DataTransferItem")}} 物件,則代表著一個<em>拖放單元</em>,每個拖放單元則擁有代表該資料<em>種類</em>的 {{domxref("DataTransferItem.kind","kind")}} 屬性(<code>string</code> 或 <code>file</code>)、還有表示該單元檔案類型(如 MIME)的{{domxref("DataTransferItem.type","type")}} 屬性。另外,{{domxref("DataTransferItem")}} 物件能取得拖放單元的資料。</p>
diff --git a/files/zh-tw/web/api/node/nodetype/index.html b/files/zh-tw/web/api/node/nodetype/index.html
index 606cbd1b94..5c5c4268e4 100644
--- a/files/zh-tw/web/api/node/nodetype/index.html
+++ b/files/zh-tw/web/api/node/nodetype/index.html
@@ -18,7 +18,7 @@ translation_of: Web/API/Node/nodeType
<pre class="syntaxbox"><em>var <var>type</var></em> = <var>node</var>.nodeType;
</pre>
-<p>Returns an integer value which specifies the type of the node; possible values are listed in {{anch("Node type constants")}}.</p>
+<p>Returns an integer value which specifies the type of the node; possible values are listed in <a href="#節點類型常數">Node type constants</a>.</p>
<h2 id="常數">常數</h2>
diff --git a/files/zh-tw/web/api/notification/index.html b/files/zh-tw/web/api/notification/index.html
index ca27b6413e..7e308c8229 100644
--- a/files/zh-tw/web/api/notification/index.html
+++ b/files/zh-tw/web/api/notification/index.html
@@ -90,7 +90,7 @@ translation_of: Web/API/Notification
<h4 id="停止支援的事件處理器">停止支援的事件處理器</h4>
-<p>底下這些列在 {{anch("browser compatibility")}} 中的 event handlers 雖然還有支援,但已經從近期的 spec 中移除了。因為瀏覽器會在未來的版本逐漸停止支援,最好還是不要使用它們。</p>
+<p>底下這些列在 <a href="#瀏覽器支援度">瀏覽器支援度</a> 中的 event handlers 雖然還有支援,但已經從近期的 spec 中移除了。因為瀏覽器會在未來的版本逐漸停止支援,最好還是不要使用它們。</p>
<dl>
<dt>{{domxref("Notification.onclose")}}</dt>
diff --git a/files/zh-tw/web/api/server-sent_events/using_server-sent_events/index.html b/files/zh-tw/web/api/server-sent_events/using_server-sent_events/index.html
index 92433f4f18..e9d5992197 100644
--- a/files/zh-tw/web/api/server-sent_events/using_server-sent_events/index.html
+++ b/files/zh-tw/web/api/server-sent_events/using_server-sent_events/index.html
@@ -59,7 +59,7 @@ translation_of: Web/API/Server-sent_events/Using_server-sent_events
<h2 id="從伺服器發送事件">從伺服器發送事件</h2>
-<p>由伺服器端所發送的事件需要使用 <code>text/event-stream</code> 的 MIME 類型回應。每一個通知皆由一組文字組成並由一對換行結尾。如何處理事件串流的格式,請參考 {{ anch("Event stream format") }} 。</p>
+<p>由伺服器端所發送的事件需要使用 <code>text/event-stream</code> 的 MIME 類型回應。每一個通知皆由一組文字組成並由一對換行結尾。如何處理事件串流的格式,請參考 <a href="#事件串流(event_stream)格式">Event stream format</a> 。</p>
<p>下面是一個 {{Glossary("PHP")}} 範例:</p>
diff --git a/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html b/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html
index b2767fa6f4..39dbe87d8f 100644
--- a/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html
+++ b/files/zh-tw/web/api/web_workers_api/using_web_workers/index.html
@@ -88,7 +88,7 @@ second.onchange = function() {
<div class="note"><strong>Note</strong>: 在主執行緒中存取 <code>onmessage</code> <code>與 postMessage</code> 需要主動掛在 worker 物件上,在 worker 執行緒則不用,這是因為 worker 執行緒的全域物件便是 worker 物件。</div>
-<div class="note"><strong>Note</strong>: 和 worker 傳送的資料並非共享而是複製一份後傳送,詳細請參照 {{anch("Transferring data to and from workers: further details")}}。</div>
+<div class="note"><strong>Note</strong>: 和 worker 傳送的資料並非共享而是複製一份後傳送,詳細請參照 <a href="#和_workers_傳遞資料:更多細節">和 workers 傳遞資料:更多細節</a>。</div>
<h3 id="結束_worker">結束 worker</h3>
diff --git a/files/zh-tw/web/api/webvr_api/index.html b/files/zh-tw/web/api/webvr_api/index.html
index dd9db2716f..fe50e8dd42 100644
--- a/files/zh-tw/web/api/webvr_api/index.html
+++ b/files/zh-tw/web/api/webvr_api/index.html
@@ -52,7 +52,7 @@ translation_of: Web/API/WebVR_API
<dt>{{domxref("VRDisplayCapabilities")}}</dt>
<dd>Describes the capabilities of a {{domxref("VRDisplay")}} — it's features can be used to perform VR device capability tests, for example can it return position information.</dd>
<dt>{{domxref("VRDisplayEvent")}}</dt>
- <dd>Represents the event object of WebVR-related events (see the {{anch("Window", "window object extensions")}} listed below).</dd>
+ <dd>Represents the event object of WebVR-related events (see the <a href="#window">window object extensions</a> listed below).</dd>
<dt>{{domxref("VRFrameData")}}</dt>
<dd>Represents all the information needed to render a single frame of a VR scene; constructed by {{domxref("VRDisplay.getFrameData()")}}.</dd>
<dt>{{domxref("VRPose")}}</dt>