会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Deajax 倒计时
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2023年9月27日
vue3移动端设置单页面body的背景色
摘要: <script setup> import { onBeforeUnmount, onMounted } from 'vue'; // 设置页面背景颜色 onMounted(() => { document .querySelector("body") .setAttribute("style",
阅读全文
posted @ 2023-09-27 08:39 deajax
阅读(788)
评论(0)
推荐(1)
2023年7月20日
使用mpx创建小程序并使用tailwind
摘要: # 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
阅读(241)
评论(0)
推荐(0)
2023年7月11日
微信小程序使用tailwindcss
摘要: 第一次尝试成功,可以使用部分基础类属性 1、新建一个项目目录,再在目录里新建小程序项目。 2、整个项目使用vscode打开,npm init 初始化npm。 3、安装tailwind、postcss autoprefixer npm install -D tailwindcss@latest pos
阅读全文
posted @ 2023-07-11 16:21 deajax
阅读(1913)
评论(0)
推荐(0)
2023年6月28日
禁止tailwindcss的默认属性
摘要: 修改文件 tailwind.config.js module.exports = { ... ... corePlugins: { preflight: false } }
阅读全文
posted @ 2023-06-28 13:30 deajax
阅读(190)
评论(0)
推荐(0)
2023年6月7日
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
摘要: <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover">
阅读全文
posted @ 2023-06-07 19:48 deajax
阅读(42)
评论(0)
推荐(0)
2023年5月29日
tailwindcss在使用cdn引入静态html的时候,使用vscode代码提示
摘要: 原文: 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
阅读(1575)
评论(0)
推荐(0)
2023年2月15日
微信小程序border-radius失效问题
摘要: 明明设置了border-radius,也设置了overflow:hidden,预览也没事,就是真机不行。 其实就是父级设置圆角属性失效,父元素使用border-radius和overflow:hidden做成圆形,子元素如果使用了transform属性,则父元素的overflow:hidden会失效
阅读全文
posted @ 2023-02-15 11:21 deajax
阅读(1725)
评论(0)
推荐(0)
2022年7月5日
vue 全局调用变量
摘要: 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
阅读(356)
评论(0)
推荐(0)
vue3 单页面body样式
摘要: <script> import { onBeforeMount, onBeforeUnmount } from "vue"; export default { setup() { onBeforeMount(() => { document.body.setAttribute("style", "b
阅读全文
posted @ 2022-07-05 09:27 deajax
阅读(815)
评论(0)
推荐(0)
2021年11月24日
启用运行时编译
摘要: runtimeCompiler Type: boolean Default: false 是否使用包含运行时编译器的 Vue 构建版本。设置为 true 后你就可以在 Vue 组件中使用 template 选项了,但是这会让你的应用额外增加 10kb 左右。 vue.config.js module
阅读全文
posted @ 2021-11-24 09:10 deajax
阅读(99)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告