摘要:
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: 阅读全文
摘要:
<script setup> import { onBeforeUnmount, onMounted } from 'vue'; // 设置页面背景颜色 onMounted(() => { document .querySelector("body") .setAttribute("style", 阅读全文
摘要:
# cli 创建项目mpx create mpx-project# 切换到新的 mpx-project 中cd mpx-project把 @mpxjs/webpack-plugin 版本改为 2.8.32 # 安装包yarn 执行: yarn add -D tailwindcss weapp-tai 阅读全文
摘要:
第一次尝试成功,可以使用部分基础类属性 1、新建一个项目目录,再在目录里新建小程序项目。 2、整个项目使用vscode打开,npm init 初始化npm。 3、安装tailwind、postcss autoprefixer npm install -D tailwindcss@latest pos 阅读全文
摘要:
修改文件 tailwind.config.js module.exports = { ... ... corePlugins: { preflight: false } } 阅读全文
摘要:
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover"> 阅读全文
摘要:
原文: 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. 阅读全文
摘要:
明明设置了border-radius,也设置了overflow:hidden,预览也没事,就是真机不行。 其实就是父级设置圆角属性失效,父元素使用border-radius和overflow:hidden做成圆形,子元素如果使用了transform属性,则父元素的overflow:hidden会失效 阅读全文
摘要:
vue.config.js : npm install style-resources-loader module.exports = { //站点标题 chainWebpack: (config) => { config.plugin("html").tap((args) => { args[0] 阅读全文
摘要:
<script> import { onBeforeMount, onBeforeUnmount } from "vue"; export default { setup() { onBeforeMount(() => { document.body.setAttribute("style", "b 阅读全文