HTMLIFrameElement: height ããããã£
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨2015å¹´7æâ©.
height 㯠HTMLIFrameElement ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ããããã£ã§ããã® <iframe> è¦ç´ ã® height 屿§ãåæ ãããã¬ã¼ã ã®é«ãã CSS ãã¯ã»ã«æ°ã§ç¤ºãæååãè¿ãã¾ãã
å¤
CSS ãã¯ã»ã«ã§ãã¬ã¼ã ã®é«ãã示ãæååã§ãã
ä¾
html
<iframe id="el" width="800" height="600"></iframe>
js
const el = document.getElementById("el");
console.log(el.height); // Output: '600'
仿§æ¸
| Specification |
|---|
| HTML > # dom-dim-height > |