summaryrefslogtreecommitdiff
path: root/web/multi_layers.html
diff options
context:
space:
mode:
authorzhang <zch921005@126.com>2022-06-04 08:48:54 +0800
committerzhang <zch921005@126.com>2022-06-04 08:48:54 +0800
commit44097da7288042e988bcb89f1c6cc817a8e1eec9 (patch)
tree7c28da29f31ca429b8d27ed7441d650f1195812d /web/multi_layers.html
parent0f885b830ac552bfd357dec74c70e1349434b58b (diff)
0604
Diffstat (limited to 'web/multi_layers.html')
-rw-r--r--web/multi_layers.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/web/multi_layers.html b/web/multi_layers.html
new file mode 100644
index 0000000..1311a77
--- /dev/null
+++ b/web/multi_layers.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Title</title>
+ <style>
+ #layer1 {
+ border: 10px, solid;
+
+ }
+ </style>
+</head>
+
+<body>
+
+<div style="position: relative;">
+ <canvas id="layer1" width="200" height="200"
+ style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas>
+ <canvas id="layer2" width="100" height="100"
+ style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas>
+</div>
+
+</body>
+</html> \ No newline at end of file