use*_*793 12 html css embed height object
我正在尝试插入以下代码,但它无法正常工作.我无法获得100%的身高.谁能帮我?谢谢!
<body style="overflow:hidden;">
<TABLE align=left width=234 border="0" cellpadding="0" cellspacing="0">
<TR>
<TD valign=top align=center WIDTH="234" >
<object data="EmbedPage.html" type="text/html" style="width: 230px;height:100%;"></object>
</TD>
</TR>
</TABLE>
</body>
Run Code Online (Sandbox Code Playgroud)
tak*_*shi 22
如果要将嵌入对象跨越全屏,请使用100vh作为height。
<body>
<object data="EmbedPage.html" type="text/html" style="width:100%;height:100vh;">
</object>
</body>
Run Code Online (Sandbox Code Playgroud)
尝试这个
<body style="overflow:hidden;height:100%;">
<object data="EmbedPage.html" type="text/html" style="float:left;width:230px;height:100%;">
</object>
</body>
Run Code Online (Sandbox Code Playgroud)