First, the template should be placed in the folder corresponding to the template, and then the externally referenced css, js and other files should be created in a new folder named public under your template directory, where css, js files are placed.
Pay attention to changing the code that references the address in the template (htnl file), for example:
So the css file you quoted is like this:
& lt link? rel="stylesheet "? href= "。 /Css/index.css "? /& gt; But in thinkPHP, you have to change it to:
& lt link? rel="stylesheet "? href="__public__/Css/index.css "? /& gt; __public__ means to access the public folder in the current directory, and thinkPHP will access the public folder.