vue问题汇总
1. nmp run dev 自动运行和热更新
config/index.js
autoOpenBrowser:true //自动打开浏览器
dev中 poll选项值为true
build/webpack.dev.conf.js
修改devServer中hot选项值为tru
2. 跨浏览器的高度一致性,解决了浏览器四周空白的小边
npm install --save normalize.css
import 'normalize.css/normalize.css'
3. div高度height:100%不生效
App.vue中
html, body, #app {
height: 100%;
}
template里第一个div的height是100%