【发布时间】:2018-04-11 04:55:33
【问题描述】:
我是 CSS 新手,所以我从某个地方复制了这段代码来创建响应式嵌入式谷歌地图,但是在引入了以前没有的“max-height”属性后,页面底部有空白。
/* Flexible iFrame (for google maps)*/
.Flexible-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.Flexible-container iframe,
.Flexible-container object,
.Flexible-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-height: 500px;
}
【问题讨论】:
标签: html css google-maps iframe