瀏覽代碼

background color about vue component

night-cherry 1 月之前
父節點
當前提交
0d56c1be5e
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 1 1
      index.html
  2. 9 1
      style/index.css

+ 1 - 1
index.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="en" data-theme="dark">
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">

+ 9 - 1
style/index.css

@@ -63,4 +63,12 @@ dialog::backdrop{
     color:#121929;
     /* background-color:#862930 ; */
     /* border: 1px solid #121929; */
-}
+}
+
+html[data-theme="dark"]{
+    background-color: gray;
+}
+html[data-theme="day"]{
+    background-color: white;
+}
+