Skip to content

布局视图

通常,在src文件夹创建一个文件夹pages,用来存放项目的所有页面

更改浏览器的默认样式,默认的浏览器是带有距离边框的,我们可以在public文件夹中的index.html文件中加入以下的代码:

html
<style type="text/css">
      body{
        margin: 0;
        padding: 0;
      }
</style>

还可以通过https://www.bootcdn.cn/normalize/引入link标签来修改默认浏览器的样式,在index.html文件中加上,这样浏览器的样式就能统一,使用所有浏览器的效果就更加一致

html
<link href="https://cdn.bootcdn.net/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet">

在项目文件夹中创建style文件夹,在文件夹中创建headtap.css文件,用来存放相关界面的样式

在项目文件夹中创建static文件夹,用于存放静态文件(包括图片等等)

Released under the MIT License.