--- title: LinkStyle slug: Web/API/LinkStyle tags: - API - CSSOM - Interface - NeedsBrowserCompatibility - Reference translation_of: Web/API/LinkStyle --- <div>{{APIRef("CSSOM")}}</div> <p><code><strong>LinkStyle</strong></code> インターフェイスで、ノードに<em>関連付けられた CSS スタイルシート</em>にアクセスできます。</p> <p><code>LinkStyle</code> は生のインターフェイスであり、この型のオブジェクトは生成できません。これは {{domxref("HTMLLinkElement")}} および {{domxref("HTMLStyleElement")}} オブジェクトによって実装されています。</p> <h2 id="Properties" name="Properties">プロパティ</h2> <p><em>継承しているプロパティはありません。</em></p> <dl> <dt>{{domxref("LinkStyle.sheet")}} {{readonlyInline}}</dt> <dd>指定した要素に関連付けられている {{domxref("StyleSheet")}} オブジェクトを返します。何も関連付けられていない場合は <code>null</code> を返します。</dd> </dl> <h2 id="Methods" name="Methods">メソッド</h2> <p><em>このインターフェイスはメソッドを実装していません。</em></p> <h2 id="Specifications" name="Specifications">仕様</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">仕様書</th> <th scope="col">策定状況</th> <th scope="col">コメント</th> </tr> <tr> <td>{{SpecName('CSSOM', '#the-linkstyle-interface', 'LinkStyle')}}</td> <td>{{Spec2('CSSOM')}}</td> <td>{{SpecName('DOM2 Style')}} から変更なし。</td> </tr> <tr> <td>{{SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-LinkStyle', 'LinkStyle')}}</td> <td>{{Spec2('DOM2 Style')}}</td> <td>初期定義</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザー実装状況</h2> <div>{{CompatibilityTable}}</div> <div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>機能</th> <th>Chrome</th> <th>Edge</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>基本サポート</td> <td>{{CompatUnknown}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatUnknown}}</td> <td>{{CompatUnknown}}</td> <td>{{CompatUnknown}}</td> <td>{{CompatUnknown}}</td> </tr> </tbody> </table> </div> <div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>機能</th> <th>Android</th> <th>Edge</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>基本サポート</td> <td>{{CompatUnknown}}</td> <td>{{CompatVersionUnknown}}</td> <td>{{CompatUnknown}}</td> <td>{{CompatUnknown}}</td> <td>{{CompatUnknown}}</td> <td>{{CompatUnknown}}</td> </tr> </tbody> </table> </div>