浏览代码

HW_20 (oop_classes) done

Graf15 2 年之前
父节点
当前提交
672124eb89
共有 3 个文件被更改,包括 513 次插入0 次删除
  1. 17 0
      js/js_20_oop_classes/index.html
  2. 482 0
      js/js_20_oop_classes/index.js
  3. 14 0
      js/js_20_oop_classes/style.css

+ 17 - 0
js/js_20_oop_classes/index.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+  <meta charset="UTF-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <link rel="stylesheet" href="style.css">
+  <title>Document</title>
+
+</head>
+
+<body>
+  <script src="index.js"></script>
+</body>
+
+</html>

文件差异内容过多而无法显示
+ 482 - 0
js/js_20_oop_classes/index.js


+ 14 - 0
js/js_20_oop_classes/style.css

@@ -0,0 +1,14 @@
+*,
+*:before,
+*:after {
+  box-sizing: border-box;
+}
+
+body {
+    margin: 0;
+    height: 100vh;
+    background-color: black;
+    padding: 10px;
+
+}
+