摘要: 一、首先在vscode中安装扩展Prettier - Code formatter 项目根目录创建文件.prettierrc.json //.prettierrc.json { "printWidth": 100,//定义每行代码的最大字符数。超过这个限制的行将被自动换行。 "tabWidth": 阅读全文
posted @ 2022-11-29 13:30 小呀小恐龙 阅读(3788) 评论(0) 推荐(0)
摘要: 初始化 Tailwind CSS 安装 Tailwind 以及其它依赖项: pnpm install -D tailwindcss@latest postcss@latest autoprefixer@latest //或者 npm install -D tailwindcss@latest pos 阅读全文
posted @ 2022-11-29 11:30 小呀小恐龙 阅读(1968) 评论(0) 推荐(0)
摘要: 如果使用Vue进行移动端页面的开发,需要对不同机型的宽高进行适配。最常用的方法是使用amfe-flexable和postcss-pxtorem这两个插件来帮助进行适配。 amfe-flexable amfe-flexable是阿里发布的一套可伸缩适配方案。它能根据设备的宽高来设置页面body元素的字 阅读全文
posted @ 2022-11-29 11:14 小呀小恐龙 阅读(5746) 评论(0) 推荐(1)