Skip to content

Commit 7bbefa1

Browse files
committed
update
1 parent 7c5f60f commit 7bbefa1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
1.2 MB
Loading

Web-API/matchMedia-跟随系统的主题切换/theme.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
body {
4040
background-color: var(--bg-color);
4141
color: var(--text-color);
42+
text-align: center;
4243
}
4344

4445
h1 {
@@ -74,6 +75,10 @@ <h1>JS媒体查询之matchMedia API 实现跟随系统主题色切换效果</h1>
7475

7576
<h5>注:如果想要在系统主题色切换时,也跟着一起切换,请选中 “系统跟随” 选项!</h5>
7677

78+
<br>
79+
80+
<img src="./purple.png" alt="purple" />
81+
7782
<script>
7883
const theme = document.getElementById('theme');
7984

0 commit comments

Comments
 (0)