小编Sis*_*Sis的帖子

并排显示两个 iFrame

我想使用 iFrame 并排显示网页的两个版本,但我在大小和位置属性方面遇到了一些问题。(即使我将其设置为 100,左边的似乎也以很小的高度显示)

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Split</title>
</head>
<body>

     <iframe src="link_v1" frameborder="0" scrolling="yes"                           
                                    style="overflow: hidden; height: 100%; 
                                                width: 49%; float: left; " height="100%" width="49%"
                                   align="left">
                                  </iframe>  

     <iframe src="link_v2" frameborder="0" scrolling="yes"  
                                        style="overflow: hidden; height: 100%;
                                        position: absolute;
                                        width: 49%; " height="100%" width="49%"                                 
                                         align="right">
                                        </iframe>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

html css iframe

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

css ×1

html ×1

iframe ×1