Skip to content

Instantly share code, notes, and snippets.

@stmtk1
Last active October 21, 2015 08:45
Show Gist options
  • Save stmtk1/7a97fec0f038bd39b4fe to your computer and use it in GitHub Desktop.
Save stmtk1/7a97fec0f038bd39b4fe to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=x-sjis">
<title>学習院ひろば</title>
</head>
<frameset cols="25%,75%">
<frame src="./handle.html" name="handle">
<frameset rows="12%,88%">
<frame src="./menu.html" name="menu">
<frame src="./main.html" name="main">
</frameset>
</frameset>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<style>
#back_ground{
position : fixed;
z-index : -1;
bottom : 0;
right : 0;
}
div{
position : absolute;
bottom : 10px;
right : 10px;
color : #fff;
size : 200;
}
</style>
</head>
<body>
<img src="./trust_pic01.jpg" id="back_ground">
<div>hello world</div>
<script>
var back_ground = document.getElementById('back_ground');
back_ground.width = window.innerWidth;
back_ground.height = window.innerHeight;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<style>
#back_ground{
position : fixed;
z-index : -1;
bottom : 0;
right : 0;
}
div{
position : absolute;
bottom : 10px;
right : 10px;
color : #fff;
size : 200;
}
</style>
</head>
<body>
<img src="./trust_pic01.jpg" id="back_ground">
<div>hello world</div>
<script>
var back_ground = document.getElementById('back_ground');
back_ground.width = window.innerWidth;
back_ground.height = window.innerHeight;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<style>
#back_ground{
position : fixed;
z-index : -1;
bottom : 0;
right : 0;
}
div{
position : absolute;
bottom : 10px;
right : 10px;
color : #fff;
size : 200;
}
</style>
</head>
<body>
<img src="./trust_pic01.jpg" id="back_ground">
<div>hello world</div>
<script>
var back_ground = document.getElementById('back_ground');
back_ground.width = window.innerWidth;
back_ground.height = window.innerHeight;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<style>
#back_ground{
position : fixed; // 絶対座標
z-index : -1; // ほかのものと重なったときに下に表示する。
bottom : 0; // y座標
right : 0; //x座標
}
div{
position : absolute;
bottom : 10px;
right : 10px;
color : #fff; // #fffで白
size : 200; //文字のサイズ
}
</style>
</head>
<body>
<img src="./trust_pic01.jpg" id="back_ground">
<div>hello world</div>
<script>
var back_ground = document.getElementById('back_ground');
back_ground.width = window.innerWidth; //背景の横幅を指定
back_ground.height = window.innerHeight; // 背景の高さを指定
</script>
</body>
</html>
@stmtk1
Copy link
Author

stmtk1 commented Oct 21, 2015

for today's section

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment