【问题标题】:make an embedded webpage fit the width and height of the browser window?使嵌入式网页适合浏览器窗口的宽度和高度?
【发布时间】:2014-06-28 10:54:30
【问题描述】:

我正在使用此代码在我的网站中嵌入一个 1300x700 像素的页面

<iframe src="http://example.com"
    width="1300" height="700"></iframe>

有没有办法让它拉伸或缩小以匹配浏览器窗口的大小? (最好在导航栏的顶部使用 -30px,目前使用 css 进行设置)

【问题讨论】:

    标签: html css iframe embed


    【解决方案1】:

    使用百分比作为宽度/高度,然后使用像素设置导航栏的边距

    【讨论】:

      猜你喜欢
      • 2011-10-15
      • 1970-01-01
      • 2014-08-25
      • 2016-12-04
      • 2016-08-16
      • 1970-01-01
      • 2014-08-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多