Home  >  Q&A  >  body text

Invalid introduction of static resource files

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?

萧寒萧寒1052 days ago866

reply all(4)I'll reply

  • autoload

    autoload2021-11-08 08:50:29

    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
    0
  • 萧寒

    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.

    萧寒 · 2021-11-08 08:55:27
  • Cancelreply