Skip to content

Instantly share code, notes, and snippets.

@Rainbowrain-TW
Last active November 10, 2023 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rainbowrain-TW/e8d34f7d7852af2524713059284506ab to your computer and use it in GitHub Desktop.
Save Rainbowrain-TW/e8d34f7d7852af2524713059284506ab to your computer and use it in GitHub Desktop.
iFrame 圖台範例
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
margin: 0;
padding: 0;
}
header{
width: 100%;
height: 50px;
background-color: #000;
color: #fff;
text-align: center;
line-height: 50px;
}
content{
display: inline-block;
width: 100%;
height: calc(100vh - 54px);
background-color: #aaa;
}
iframe{
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<header>nav bar</header>
<content>
<iframe src="http://140.110.11.220/insynerger/">
</content>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment