-
Notifications
You must be signed in to change notification settings - Fork 0
/
iframe_testing.html
49 lines (39 loc) · 1.03 KB
/
iframe_testing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!-- <iframe src="http://localhost:8081/" style="border:none;" title="Iframe Example"></iframe> -->
<!-- <p></p>
<div class="container">
<iframe class="responsive-iframe" src="http://localhost:8081/"></iframe>
</div>
<p></p>
<div class="container">
<iframe class="responsive-iframe" src="http://localhost:8081/"></iframe>
</div>
<p></p>
<div class="container">
<iframe class="responsive-iframe" src="http://localhost:8081/"></iframe>
</div> -->
<div class="container">
<iframe class="responsive-iframe" src="http://localhost:8091/"></iframe>
</div>
<style>
.container {
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
/* padding-top: 75%; */ /* 4:3 Aspect Ratio */
padding-top: 56.25%;
/* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
border: none;
position: absolute;
overflow-y: hidden;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 200px;
height: 100%;
}
</style>