aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/attributes/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/html/attributes/index.html')
-rw-r--r--files/zh-cn/web/html/attributes/index.html98
1 files changed, 49 insertions, 49 deletions
diff --git a/files/zh-cn/web/html/attributes/index.html b/files/zh-cn/web/html/attributes/index.html
index 846e47bddd..eb514c19f5 100644
--- a/files/zh-cn/web/html/attributes/index.html
+++ b/files/zh-cn/web/html/attributes/index.html
@@ -25,64 +25,64 @@ translation_of: Web/HTML/Attributes
</thead>
<tbody>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept">accept</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/accept">accept</a></td>
<td>{{ HTMLElement("form") }}, {{ HTMLElement("input") }}</td>
<td>服务器接受内容或文件类型的列表。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept-charset">accept-charset</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/accept-charset">accept-charset</a></td>
<td>{{ HTMLElement("form") }}</td>
<td>支持的字符集列表。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey">accesskey</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Global_attributes/accesskey">accesskey</a></td>
<td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></td>
<td>定义键盘快捷键来激活或者聚焦元素</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/action">action</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/action">action</a></td>
<td>{{ HTMLElement("form") }}</td>
<td>表单信息提交的url地址,指向进行处理的程序。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/align">align</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/align">align</a></td>
<td>{{ HTMLElement("applet") }}, {{ HTMLElement("caption") }}, {{ HTMLElement("col") }}, {{ HTMLElement("colgroup") }},  {{ HTMLElement("hr") }}, {{ HTMLElement("iframe") }}, {{ HTMLElement("img") }}, {{ HTMLElement("table") }}, {{ HTMLElement("tbody") }},  {{ HTMLElement("td") }},  {{ HTMLElement("tfoot") }} , {{ HTMLElement("th") }}, {{ HTMLElement("thead") }}, {{ HTMLElement("tr") }}</td>
<td>设置元素的水平对齐。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/allow">allow</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/allow">allow</a></td>
<td>{{ HTMLElement("iframe") }}</td>
<td>Specifies a feature-policy for the iframe.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/alt">alt</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/alt">alt</a></td>
<td>
<p>{{ HTMLElement("applet") }}, {{ HTMLElement("area") }}, {{ HTMLElement("img") }}, {{ HTMLElement("input") }}</p>
</td>
<td>在图片无法呈现时的替代文本。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/async">async</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/async">async</a></td>
<td>{{ HTMLElement("script") }}</td>
<td>表示该脚本应该异步执行。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize">autocapitalize</a></td>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes">全局属性</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Global_attributes/autocapitalize">autocapitalize</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Global_attributes">全局属性</a></td>
<td>Sets whether input is automatically capitalized when entered by user</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete">autocomplete</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/autocomplete">autocomplete</a></td>
<td>{{ HTMLElement("form") }}, {{ HTMLElement("input") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
<td>表示该表单中是否可以由浏览器自动完成填值。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autofocus">autofocus</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/autofocus">autofocus</a></td>
<td>{{ HTMLElement("button") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
<td>在网页加载后该元素应该自动聚焦。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autoplay">autoplay</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/autoplay">autoplay</a></td>
<td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td>
<td> audio或video应该自动播放</td>
</tr>
@@ -116,12 +116,12 @@ translation_of: Web/HTML/Attributes
</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/buffered">buffered</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/buffered">buffered</a></td>
<td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td>
<td>包含已缓存媒体的时间范围。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture">capture</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/capture">capture</a></td>
<td>{{ HTMLElement("input") }}</td>
<td>From the <a href="https://w3c.github.io/html-media-capture/#the-capture-attribute" hreflang="en" lang="en" rel="noopener">HTML Media Capture<br>
<small lang="en-US">The definition of 'media capture' in that specification.</small></a>spec, specifies a new file can be captured.</td>
@@ -132,32 +132,32 @@ translation_of: Web/HTML/Attributes
<td>与公钥一起提交的挑战字符。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/charset">charset</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/charset">charset</a></td>
<td>{{ HTMLElement("meta") }}, {{ HTMLElement("script") }}</td>
<td>申明该页面或脚本的字符编码。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/checked">checked</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/checked">checked</a></td>
<td>{{ HTMLElement("command") }}, {{ HTMLElement("input") }}</td>
<td>指出该元素在页面加载后是否处于选中状态。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/cite">cite</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/cite">cite</a></td>
<td>{{ HTMLElement("blockquote") }}, {{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("q") }}</td>
<td>包含一个URI,用来指明引用或修改的源地址。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class">class</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Global_attributes/class">class</a></td>
<td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></td>
<td>经常和CSS一起配合使用来修饰元素。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/code">code</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/code">code</a></td>
<td>{{ HTMLElement("applet") }}</td>
<td>标明被加载和执行的applet类文件的URL。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/codebase">codebase</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/codebase">codebase</a></td>
<td>{{ HTMLElement("applet") }}</td>
<td>指出存放applet类文件基本URL地址(绝对或相对),这些文件由code属性标明。</td>
</tr>
@@ -173,53 +173,53 @@ translation_of: Web/HTML/Attributes
</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/cols">cols</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/cols">cols</a></td>
<td>{{ HTMLElement("textarea") }}</td>
<td>定义一个textarea中包含多少列。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/colspan">colspan</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/colspan">colspan</a></td>
<td>{{ HTMLElement("td") }}, {{ HTMLElement("th") }}</td>
<td>该属性一般用在td标签中,用于指定一个单元格占用多少列,例如:&lt;td colspan='2'&gt;表示占用一个单元格占2列.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/content">content</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/content">content</a></td>
<td>{{ HTMLElement("meta") }}</td>
<td>A value associated with <code>http-equiv</code> or <code>name</code> depending on the context.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable">contenteditable</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Global_attributes/contenteditable">contenteditable</a></td>
<td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></td>
<td>指出该元素的内容是否可以被编辑。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/contextmenu">contextmenu</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/contextmenu">contextmenu</a></td>
<td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></td>
<td>定义将用作元素上下文菜单的{{HTMLElement("Menu")}}元素的ID。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/controls">controls</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/controls">controls</a></td>
<td>{{ HTMLElement("audio") }}, {{ HTMLElement("video") }}</td>
<td>指出浏览器是否对用户显示播放控制台(前进或回退)</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/coords">coords</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/coords">coords</a></td>
<td>{{ HTMLElement("area") }}</td>
<td>A set of values specifying the coordinates of the hot-spot region.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/docs/Web/HTML/CORS_settings_attributes">crossorigin</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/CORS_settings_attributes">crossorigin</a></td>
<td>{{ HTMLElement("audio") }}, {{ HTMLElement("img") }}, {{ HTMLElement("link") }}, {{ HTMLElement("script") }}, {{ HTMLElement("video") }}</td>
<td>How the element handles cross-origin requests</td>
</tr>
<tr>
- <td><code><a href="https://wiki.developer.mozilla.org/docs/Web/API/HTMLiframeElement/csp">csp</a></code> {{experimental_inline}}</td>
+ <td><code><a href="/zh-CN/docs/Web/API/HTMLiframeElement/csp">csp</a></code> {{experimental_inline}}</td>
<td>{{ HTMLElement("iframe") }}</td>
<td>Specifies the Content Security Policy that an embedded document must agree to enforce upon itself.</td>
</tr>
<tr>
<td>
- <p><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/data">data</a></p>
+ <p><a href="/zh-CN/docs/Web/HTML/Attributes/data">data</a></p>
</td>
<td>
<p>{{ HTMLElement("object") }}</p>
@@ -230,7 +230,7 @@ translation_of: Web/HTML/Attributes
</tr>
<tr>
<td>
- <p><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/data-*">data-*</a></p>
+ <p><a href="/zh-CN/docs/Web/HTML/Global_attributes/data-*">data-*</a></p>
</td>
<td>
<p><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></p>
@@ -240,77 +240,77 @@ translation_of: Web/HTML/Attributes
</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/datetime">datetime</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/datetime">datetime</a></td>
<td>{{ HTMLElement("del") }}, {{ HTMLElement("ins") }}, {{ HTMLElement("time") }}</td>
<td>Indicates the date and time associated with the element.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/decoding">decoding</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/decoding">decoding</a></td>
<td>{{ HTMLElement("img") }}</td>
<td>Indicates the preferred method to decode the image.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/default">default</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/default">default</a></td>
<td>{{ HTMLElement("track") }}</td>
<td>Indicates that the track should be enabled unless the user's preferences indicate something different.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/defer">defer</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/defer">defer</a></td>
<td>{{ HTMLElement("script") }}</td>
<td>Indicates that the script should be executed after the page has been parsed.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir">dir</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Global_attributes/dir">dir</a></td>
<td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></td>
<td>Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/dirname">dirname</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/dirname">dirname</a></td>
<td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}</td>
<td></td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled">disabled</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/disabled">disabled</a></td>
<td>{{ HTMLElement("button") }}, {{ HTMLElement("command") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("optgroup") }}, {{ HTMLElement("option") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
<td>Indicates whether the user can interact with the element.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/download">download</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/download">download</a></td>
<td>{{ HTMLElement("a") }}, {{ HTMLElement("area") }}</td>
<td>Indicates that the hyperlink is to be used for downloading a resource.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable">draggable</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Global_attributes/draggable">draggable</a></td>
<td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></td>
<td>Defines whether the element can be dragged.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/dropzone">dropzone</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/dropzone">dropzone</a></td>
<td><a href="/en/HTML/Global_attributes" title="en/HTML/Global attributes">全局属性</a></td>
<td>Indicates that the element accept the dropping of content on it.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/enctype">enctype</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/enctype">enctype</a></td>
<td>{{ HTMLElement("form") }}</td>
<td>Defines the content type of the form date when the <code>method</code> is POST.</td>
</tr>
<tr>
- <td><code><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/enterkeyhint">enterkeyhint</a></code> {{experimental_inline}}</td>
- <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}, <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable"><code>contenteditable</code></a></td>
+ <td><code><a href="/zh-CN/docs/Web/HTML/Attributes/enterkeyhint">enterkeyhint</a></code> {{experimental_inline}}</td>
+ <td>{{ HTMLElement("input") }}, {{ HTMLElement("textarea") }}, <a href="/zh-CN/docs/Web/HTML/Global_attributes/contenteditable"><code>contenteditable</code></a></td>
<td>The <a href="https://html.spec.whatwg.org/dev/interaction.html#input-modalities:-the-enterkeyhint-attribute" rel="noopener"><code>enterkeyhint</code></a> specifies what action label (or icon) to present for the enter key on virtual keyboards. The attribute can be used with form controls (such as the value of <code>textarea</code> elements), or in elements in an editing host (e.g., using <code>contenteditable</code> attribute).</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/for">for</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/for">for</a></td>
<td>{{ HTMLElement("label") }}, {{ HTMLElement("output") }}</td>
<td>描述与当前元素绑定的元素。</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/form">form</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/form">form</a></td>
<td>{{ HTMLElement("button") }}, {{ HTMLElement("fieldset") }}, {{ HTMLElement("input") }}, {{ HTMLElement("keygen") }}, {{ HTMLElement("label") }}, {{ HTMLElement("meter") }}, {{ HTMLElement("object") }}, {{ HTMLElement("output") }}, {{ HTMLElement("progress") }}, {{ HTMLElement("select") }}, {{ HTMLElement("textarea") }}</td>
<td>Indicates the form that is the owner of the element.</td>
</tr>
<tr>
- <td><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Attributes/formaction">formaction</a></td>
+ <td><a href="/zh-CN/docs/Web/HTML/Attributes/formaction">formaction</a></td>
<td><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input" title="The HTML &lt;input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. "><code>&lt;input&gt;</code></a>, <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button" title="The HTML &lt;button> element represents a clickable button, used to submit forms or anywhere in a document for accessible, standard button functionality."><code>&lt;button&gt;</code></a></td>
<td>Indicates the action of the element, overriding the action defined in the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form" title="The HTML &lt;form> element represents a document section containing interactive controls for submitting information."><code>&lt;form&gt;</code></a>.</td>
</tr>
@@ -689,5 +689,5 @@ translation_of: Web/HTML/Attributes
<h2 id="参见">参见</h2>
<ul>
- <li><a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTML/Element">HTML elements</a></li>
+ <li><a href="/zh-CN/docs/Web/HTML/Element">HTML elements</a></li>
</ul>