打开网站首页,右键选择另存为
把另存的网站首页拖放到phpstorm,复制代码,用JS/HTML格式化工具转换代码格式
将格式化后的网站首页做为项目首页
app\index\controller\Index.php
namespace app\index\controller;
use think\Controller;
class Index extends Controller
{
public function index()
{
return $this->view->fetch();
}
}
新建首页模板(application\index\view\index\index.html)
然后将格式化后的代码放到index.html文件中。
将下载网站首页页面时带的css和js文件放到项目中