摘要: html部分 1 <div class="scroll-table"> 2 <div class="scroll-table-header"> 3 <table class="scroll-table-header__table"> 4 <colgroup> 5 <col style="width: 阅读全文
posted @ 2023-11-07 10:37 deajax 阅读(217) 评论(0) 推荐(0) 编辑
摘要: <script setup> import { onBeforeUnmount, onMounted } from 'vue'; // 设置页面背景颜色 onMounted(() => { document .querySelector("body") .setAttribute("style", 阅读全文
posted @ 2023-09-27 08:39 deajax 阅读(457) 评论(0) 推荐(0) 编辑
摘要: # cli 创建项目mpx create mpx-project# 切换到新的 mpx-project 中cd mpx-project把 @mpxjs/webpack-plugin 版本改为 2.8.32 # 安装包yarn 执行: yarn add -D tailwindcss weapp-tai 阅读全文
posted @ 2023-07-20 10:08 deajax 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 第一次尝试成功,可以使用部分基础类属性 1、新建一个项目目录,再在目录里新建小程序项目。 2、整个项目使用vscode打开,npm init 初始化npm。 3、安装tailwind、postcss autoprefixer npm install -D tailwindcss@latest pos 阅读全文
posted @ 2023-07-11 16:21 deajax 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: 修改文件 tailwind.config.js module.exports = { ... ... corePlugins: { preflight: false } } 阅读全文
posted @ 2023-06-28 13:30 deajax 阅读(132) 评论(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 阅读(5) 评论(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 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 明明设置了border-radius,也设置了overflow:hidden,预览也没事,就是真机不行。 其实就是父级设置圆角属性失效,父元素使用border-radius和overflow:hidden做成圆形,子元素如果使用了transform属性,则父元素的overflow:hidden会失效 阅读全文
posted @ 2023-02-15 11:21 deajax 阅读(975) 评论(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 阅读(341) 评论(0) 推荐(0) 编辑
摘要: <script> import { onBeforeMount, onBeforeUnmount } from "vue"; export default { setup() { onBeforeMount(() => { document.body.setAttribute("style", "b 阅读全文
posted @ 2022-07-05 09:27 deajax 阅读(667) 评论(0) 推荐(0) 编辑