【问题标题】:Embed a html screen into Html table cell shrinking html to fit to cell size将 html 屏幕嵌入到 Html 表格单元格中,缩小 html 以适应单元格大小
【发布时间】:2014-01-03 05:41:12
【问题描述】:

如何将 html 页面插入到 HTML 表格单元格中并使 HTML 适合单元格,以便不存在滚动条并且无需在单元格内滚动就可以看到整个页面?

目前我有,但单元格上总是有一个滚动条,所以我看不到整个页面。

<table class="styleTbl">
    <tr class="styleRow">
        <td class="styleObj">
            <object data=index.html height="100%" width="100%"></object></td>

【问题讨论】:

    标签: html html-table cell


    【解决方案1】:

    您可以将 iframe 与 scrolling="no" 属性一起使用。

    当然,根据需要调整widthheightsrcframeborder

    <iframe src="http://www.google.com" width="50%" height="50%" scrolling="no" frameborder="0"></iframe>
    

    【讨论】:

      猜你喜欢
      • 2017-06-30
      • 2013-08-21
      • 1970-01-01
      • 2012-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-07
      • 2023-03-03
      相关资源
      最近更新 更多