search

Home  >  Q&A  >  body text

js and css path issues

href="__STATIC__/static/h-ui/css/H-ui.min.css"

It still cannot be displayed after adding __STATIC__

cccc2506 days ago1091

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2018-03-25 22:51:17

    First check whether H-ui is installed under public/static/. If confirmed, then check whether the __STATIC__ constant is configured.

    Because this constant has been deleted in ThinkPHP5.1, users need to configure it themselves

    reply
    0
  • cc

    Thank you for your answer. I was using 5.1 before and changing it to 5.0 solved the path problem. Personally, I still like this video tutorial very much. The teacher can also understand it clearly. Starting from Chapter 4, the content of the tutorial has a big gap compared with the previous ones. There are too many jumps at once, which makes it difficult for me as a beginner. It's hard to keep up. It would be great if the middle part could be supplemented.

    cc · 2018-03-28 22:48:22
    听风吹

    This doesn't work for me either. Even writing absolute paths doesn't work.

    听风吹 · 2019-05-14 09:06:53
  • Cancelreply