search

Home  >  Q&A  >  body text

Why does user/register have no css and js styles? ?

问题.PNG

爱自由爱自由2009 days ago1369

reply all(2)I'll reply

  • 爱自由

    爱自由2019-08-01 15:54:55

    //输出替换

        'tpl_replace_string' => [

        '__STATIC__'=>$_SERVER['REQUEST_SCHEME'] .'://' . $_SERVER['HTTP_HOST'] . str_replace('/index.php' ,'' ,$_SERVER['SCRIPT_NAME']) . '/static',

        '__IMG__'=>$_SERVER['REQUEST_SCHEME'] .'://' . $_SERVER['HTTP_HOST'] . str_replace('/index.php' ,'' ,$_SERVER['SCRIPT_NAME']) . '/uploads',

        ],

    我解决了

    reply
    1
  • A_Drizzle小张

    A_Drizzle小张2019-07-28 14:53:29

    It is recommended that you use the relative path of the entry file to introduce the static file. I think the first one is no problem. You can print it on the page _STATIC_ and take a look.

    reply
    0
  • Cancelreply