[Untitled] Use embedded and external links to realize the function of changing the background color of web pages

1. Embedded

referenced in the head tag

 Write under the body tag

 The result of the operation is as follows:

2. Outer chain

Quoted in the body tag:

 

Just set the js name by yourself. When quoting, <script src="here write the js file name you built yourself.js"></script>

The color in js can be changed by yourself, but it must be corresponding.

 The result of the operation is as follows:

 

Guess you like

Origin blog.csdn.net/m0_62059090/article/details/126849330