Invalid introduction of static resource files
萧寒
萧寒 2021-11-05 20:51:21
0
4
902

Ask for advice: The background template file can be executed and the login interface can be seen. Refer to the teacher's modification: <link rel="stylesheet" type="text/css" href="/static/layui/css/layui. css"> , but the css file does not work. How is the location of this file defined? How to deal with it?

萧寒
萧寒

reply all(1)
逆旅行人

Check whether the static file path you introduced is correct. This should be combined with the path where your own static files are placed and the directory used by layui's template

  • reply Thank you, solved! I have been struggling with the reference path when importing files. When using a virtual domain name to point to public, it is the same as what the teacher said. When not using it, start from /tp/public.
    萧寒 author 2021-11-08 08:55:27
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template