HTML+CSS:
Copy Code code as follows:
Copy Code code as follows:
Then write a nightly pattern plus in javascript:
Copy Code code as follows:
Can also be written as a Greasemonkey script, extended as a browser to any page to increase the night mode
View all my open source projects "open Source Labs"Welcome to join my QQ group: "201055521", this blog client download "please click"This article original, reprint please specify address: http://blog.kymjs.com/Recently in the function of doing an Android night mode, and re-examined the theme mechanism. Implement my style, to solve the problem as the goal, wrote a small demo, simple to achieve the switch
How can I add the night mode function to a Web page? In fact, the so-called night mode adds a transparent mask layer on the page, but the mask layer blocks the page elements. The solution is to add a DIV, A large outline-width value is given to the outline attribute of the DIV, And the outline border is used as the mas
By default, IPC automatically switches between days and nights based on the intensity of the light. If the IPC lock is in the evening mode and the IR light is always lit, the effect is as follows:
Use the following methods to troubleshoot:
1
, eliminate artificial manual turn on infrared light
Log in to the IPC Web interface that is locked for the night
- { the Lock(SYN)//Lock - { - if(_instancce = =NULL)//prevent simultaneous access by multiple threads - { +_instancce =NewSingleton (); - return_instancce; + } A at } - } - return_instancce; - - } -}This is a lock-in way to handle multi-threaded access problems, the code is not difficult. H
We first open "Baidu read" This icon is a bit strange, click to open it.
Then click on the "Bookshelf" to find a book to read.
Now see back to "Black", click on the red box, there will be more than one function button.
As shown in the picture, there is a "sun icon Day", which becomes a daytime reading mode.
Then the night mode,
1 in the mobile phone we open "Tencent mobile phone Butler" and then find "security protection" and then find "harassment interception" in detail as shown in the following figure.
2 Then we click on "Settings" and find "night-proof mode" click to enter.
3 In this case, we can open or close the "night-proof mode", or
1. Open the article you want to read in Safari
2. If the page supports reading view mode, a button with multiple horizontal lines appears to the left of the Safari address bar and clicks on it
3. Now you're in Safari's reading view mode (reading view mode simplifies the web, hiding unwanted content such as ads, sidebar items)
4. Clic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.