摘要: 第一次尝试成功,可以使用部分基础类属性 1、新建一个项目目录,再在目录里新建小程序项目。 2、整个项目使用vscode打开,npm init 初始化npm。 3、安装tailwind、postcss autoprefixer npm install -D tailwindcss@latest pos 阅读全文
posted @ 2023-07-11 16:21 deajax 阅读(1841) 评论(0) 推荐(0)
摘要: 修改文件 tailwind.config.js module.exports = { ... ... corePlugins: { preflight: false } } 阅读全文
posted @ 2023-06-28 13:30 deajax 阅读(183) 评论(0) 推荐(0)
摘要: <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover"> 阅读全文
posted @ 2023-06-07 19:48 deajax 阅读(37) 评论(0) 推荐(0)
摘要: 原文: Hey! The Intellisense extension does need a config file to work today. I would suggest creating one in your project root to enable the extension. 阅读全文
posted @ 2023-05-29 20:33 deajax 阅读(1545) 评论(0) 推荐(0)
摘要: 明明设置了border-radius,也设置了overflow:hidden,预览也没事,就是真机不行。 其实就是父级设置圆角属性失效,父元素使用border-radius和overflow:hidden做成圆形,子元素如果使用了transform属性,则父元素的overflow:hidden会失效 阅读全文
posted @ 2023-02-15 11:21 deajax 阅读(1695) 评论(0) 推荐(0)
摘要: vue.config.js : npm install style-resources-loader module.exports = { //站点标题 chainWebpack: (config) => { config.plugin("html").tap((args) => { args[0] 阅读全文
posted @ 2022-07-05 09:29 deajax 阅读(351) 评论(0) 推荐(0)
摘要: <script> import { onBeforeMount, onBeforeUnmount } from "vue"; export default { setup() { onBeforeMount(() => { document.body.setAttribute("style", "b 阅读全文
posted @ 2022-07-05 09:27 deajax 阅读(811) 评论(0) 推荐(0)
摘要: runtimeCompiler Type: boolean Default: false 是否使用包含运行时编译器的 Vue 构建版本。设置为 true 后你就可以在 Vue 组件中使用 template 选项了,但是这会让你的应用额外增加 10kb 左右。 vue.config.js module 阅读全文
posted @ 2021-11-24 09:10 deajax 阅读(98) 评论(0) 推荐(0)
摘要: @click="$router.push('/refund')" 阅读全文
posted @ 2021-10-20 16:02 deajax 阅读(441) 评论(0) 推荐(0)
摘要: 每像素包含点的数量(dots per pixel) 普通屏幕通常包含96dpi,一般将2倍于此的屏幕称之为高分屏,即大于等于192dpi的屏幕,比如Mac视网膜屏就达到了192dpi(即2dppx),打印时一般会需要更大的dpi; 1dppx = 96dpi 1dpi ≈ 0.39dpcm 1dpc 阅读全文
posted @ 2021-04-12 15:30 deajax 阅读(314) 评论(0) 推荐(0)