高さではなく、paddingで調整する! 親要素に
position: relative; padding: calc(200 / 355 * 100%) 0 0; //padding-topに(高さ/幅*100%)
子要素(iframe)に
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
高さではなく、paddingで調整する! 親要素に
position: relative; padding: calc(200 / 355 * 100%) 0 0; //padding-topに(高さ/幅*100%)
子要素(iframe)に
position: absolute; top: 0; left: 0; width: 100%; height: 100%;