当前位置:网站首页>H5 embedded app adapts to dark mode
H5 embedded app adapts to dark mode
2022-07-05 06:27:00 【Heerey525】
situation : The project is vue
It's done H5
page , It needs to be embedded in App
Medium to dark mode , however H5 There needs to be a loading process , There will be a flash of white ( Rendering is not complete )
resolvent : stay public/index.html
Add CSS
Media query , The code is as follows
<style type="text/css">
@media (prefers-color-scheme: no-preference) {
body {
background-color: #fff !important;
}
}
@media (prefers-color-scheme: light) {
body {
background-color: #fff !important;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: rgba(0,0,0,28) !important;
}
}
</style>
边栏推荐
- Bit of MySQL_ OR、BIT_ Count function
- New title of module a of "PanYun Cup" secondary vocational network security skills competition
- [2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
- MySQL advanced part 2: MySQL architecture
- Leetcode heap correlation
- How to generate an image from text on fly at runtime
- Leetcode-9: palindromes
- [QT] QT multithreading development qthread
- Game theory acwing 894 Split Nim game
- Leetcode dynamic programming
猜你喜欢
[moviepy] unable to find a solution for exe
MySQL advanced part 2: MySQL architecture
MySQL advanced part 1: index
1.14 - assembly line
高斯消元 AcWing 884. 高斯消元解异或线性方程组
Gauss Cancellation acwing 884. Solution d'un système d'équations Xor linéaires par élimination gaussienne
高斯消元 AcWing 884. 高斯消元解异或線性方程組
Suppose a bank's ATM machine, which allows users to deposit and withdraw money. Now there is 200 yuan in an account, and both user a and user B have the right to deposit and withdraw money from this a
AE tutorial - path growth animation
中国剩余定理 AcWing 204. 表达整数的奇怪方式
随机推荐
4.Oracle-重做日志文件管理
confidential! Netease employee data analysis internal training course, white whoring! (attach a data package worth 399 yuan)
Filter the numbers and pick out even numbers from several numbers
H5 模块悬浮拖动效果
C - XOR to all (binary topic)
Game theory acwing 892 Steps Nim game
求组合数 AcWing 889. 满足条件的01序列
MySQL advanced part 1: View
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
[2021]IBRNet: Learning Multi-View Image-Based Rendering Qianqian
求组合数 AcWing 887. 求组合数 III
Dataframe (1): introduction and creation of dataframe
Inclusion exclusion principle acwing 890 Divisible number
Chart. JS - Format Y axis - chart js - Formatting Y axis
1.手动创建Oracle数据库
International Open Source firmware Foundation (osff) organization
LeetCode-54
4. Oracle redo log file management
Install opencv -- CONDA to establish a virtual environment and add the kernel of this environment in jupyter
LeetCode 1200. Minimum absolute difference