I encountered a strange phenomenon today when I was working on a project with tp. When I introduced the css file into the template, it actually prompted the message "Unable to load module" that the wooden block does not exist.
The specific code is as follows:
<link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet" /> <link id="bootstrap-rtl-link" href="" rel="stylesheet" /> <link href="__STATIC__/css/font-awesome.min.css" rel="stylesheet" /> <link href="__STATIC__/css/tree/treedefault.css" rel="stylesheet" /> <link href="__STATIC__/css/tree/treetable.css" rel="stylesheet" />
Here comes the strange place:
Above picture:
Error reason:
But the css file exists:
For __STATIC__ path:
I just don’t understand why the above ones can be introduced successfully, but these two cannot be introduced? (○´・д・)ノ
Add one more code in the runtime. There are no two pieces of code in the runtime
@yangxiangming, the path to directly output it is like this
End this post, the reason has been found. Yes, I don’t know why those two css files suddenly disappeared. I pulled it again and it's fine now. I was careless and didn't notice this problem (but the screenshot I took contains 2 files /(ㄒoㄒ)/~~) When was it deleted? Here’s the final rendering. Thank you to all the great sf guys