modified test.html
This commit is contained in:
parent
8167026d56
commit
f0cd4faa12
33
test.html
33
test.html
@ -3,25 +3,26 @@
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div class="gameWrapper">
|
||||
<iframe src="tools/sm64/index.html" allowfullscreen></iframe>
|
||||
</div>
|
||||
<p>test</p>
|
||||
<div class="container">
|
||||
<iframe class="responsive-iframe" src="https://www.youtube.com/embed/tgbNymZ7vqY"></iframe>
|
||||
</div>
|
||||
</body>
|
||||
<style>
|
||||
.gameWrapper {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
padding-top: 25px;
|
||||
height: 0;
|
||||
max-width: 60%;
|
||||
.container {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
padding-top: 56.25%;
|
||||
}
|
||||
.gameWrapper iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.responsive-iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user