aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmlmediaelement/crossorigin/index.html
blob: d82bb90e638800b2f2bb9e8e7f2714e47a02ce43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: HTMLMediaElement.crossOrigin
slug: Web/API/HTMLMediaElement/crossOrigin
translation_of: Web/API/HTMLMediaElement/crossOrigin
---
<div>{{APIRef("HTML DOM")}}</div>

<p><strong><code>HTMLMediaElement.crossOrigin</code></strong> 属性是当前图片元素的跨域资源共享(CORS)设置,详情可参考 <a href="/en-US/docs/HTML/CORS_settings_attributes">CORS</a> 设置。</p>

<h2 id="规范">规范</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">规范</th>
   <th scope="col">状态</th>
   <th scope="col">注释</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', "#attr-media-crossorigin", "HTMLMediaElement.crossOrigin")}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>{{SpecName('HTML5 W3C')}} 中无改变。</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', "embedded-content-0.html#htmlmediaelement", "HTMLMediaElement.crossOrigin")}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>初始定义</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>



<p>{{Compat("api.HTMLMediaElement.crossOrigin")}}</p>

<h2 id="更多">更多</h2>

<ul>
 <li>定义该属性的接口 {{domxref("HTMLMediaElement")}}.</li>
</ul>