7.html

来自「《CSS完全使用详解》 源文件下载 书籍源码」· HTML 代码 · 共 31 行

HTML
31
字号
<html>
<head>
<title>CSS Demo</title>
<style>
.div1 { position: absolute;
	left: 50px;
	top: 50px;
	width: 90px;
	height: 90px;
	background: #FF0000; }
.div2 { position: absolute;
	left: 65px;
	top: 65px;
	width: 60px;
	height: 60px;
	background: #00FF00; }
.div3 { position: absolute;
	left: 80px;
	top: 80px;
	width: 30px;
	height: 30px;
	background: #0000FF; }
</style>
</head>

<body>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?