-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2024/02/06 時点の英語版に基づき新規翻訳 * ヘッダー部分を修正
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
title: "HTMLVideoElement: height プロパティ" | ||
short-title: height | ||
slug: Web/API/HTMLVideoElement/height | ||
l10n: | ||
sourceCommit: d8a52569d8d465eb626af3d33600c8c638a7a322 | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
**`height`** は {{domxref("HTMLVideoElement")}} インターフェイスのプロパティで、この {{HTMLElement("video")}} 要素の `height` 属性を反映した整数を返し、CSS ピクセル単位でリソースが表示される高さを指定します。 | ||
|
||
## 値 | ||
|
||
正の整数または 0 です。 | ||
|
||
## 例 | ||
|
||
```html | ||
<video id="media" width="800" height="600"></video> | ||
``` | ||
|
||
```js | ||
const el = document.getElementById("media"); | ||
console.log(el.height); // Output: 600 | ||
``` | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} | ||
|
||
## 関連情報 | ||
|
||
- {{domxref("HTMLCanvasElement.height")}} | ||
- {{domxref("HTMLEmbedElement.height")}} | ||
- {{domxref("HTMLIFrameElement.height")}} | ||
- {{domxref("HTMLImageElement.height")}} | ||
- {{domxref("HTMLObjectElement.height")}} | ||
- {{domxref("HTMLSourceElement.height")}} |