当前位置: 首页 > news >正文

企点qq是什么天津seo排名收费

企点qq是什么,天津seo排名收费,商城源代码,县城网站怎么做第一种tailwindcss: tailwindcss官网 https://tailwindcss.com/docs/grid-column 基本介绍及优点分析 Tailwind CSS 中文文档 - 无需离开您的HTML,即可快速建立现代网站 PostCss 处理 Tailwind Css 基本流程 PostCSS - 是一个用 JavaScript 工具和插…

第一种tailwindcss:

tailwindcss官网
https://tailwindcss.com/docs/grid-column
在这里插入图片描述

基本介绍及优点分析

Tailwind CSS 中文文档 - 无需离开您的HTML,即可快速建立现代网站

在这里插入图片描述

PostCss 处理 Tailwind Css 基本流程

PostCSS - 是一个用 JavaScript 工具和插件来转换 CSS 代码的工具 | PostCSS中文网
在这里插入图片描述

在 vscode 中,安装 Tailwind Css 插件,增加代码提示

初始化项目

npm init vue@latest

安装 Tailwind Css

npm install -D tailwindcss@latest postcss@latest autoprefixer@latest

执行命令,生成两个配置文件

  • postcss.config.js
  • tailwind.config.js

npx tailwindcss init -p

配置文档参考:配置 - Tailwind CSS 中文文档

修改配置文件 tailwind.config.js

2.6


module.exports = {purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],theme: {extend: {},},plugins: [],**```
3.0版本**```cppmodule.exports = {content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],theme: {extend: {},},plugins: [],
}

创建 index.css,并在 main.ts 中引入

创建 index.css

@tailwind base;
@tailwind components;
@tailwind utilities;

第二种unocss

unocss官网
https://unocss.dev/config/rules
在这里插入图片描述
unocss:最好配合vite去构建文件
操作搜索页面:
在这里插入图片描述

在这里插入图片描述

unocss 原子化

重新构想原子化CSS - 知乎
在这里插入图片描述

unocss 原子化参考资料

由于个人感觉此模块在实际项目中应用很少,所以不做记录,但是为了以防万一,先记下来之前看过的文章及视频,讲的非常清晰,给大佬点赞~~
小满Vue3(第三十七章 unoCss原子化)_哔哩哔哩_bilibili
小满Vue3第三十七章(unocss原子化)_小满zs的博客-CSDN博客
在这里插入图片描述

unocss配置(案例)

安装依赖

npm i --save unocss,@unocss/reset

mian.ts中引入
import '@unocss/reset/tailwind.css' //初始化css
import 'uno.css'//引入unocss
新建unocss.config.ts

可 查看配置文档
在这里插入图片描述

import {defineConfig,presetAttributify,presetUno,presetIcons,
} from "unocss";
export default defineConfig({//预设:m-3 p-3presets: [presetUno(),presetAttributify(),presetIcons({ scale: 1.2, warn: true }),],//快捷方式shortcuts: [["wh-full", "w-full h-full"],["f-c-c", "flex justify-center items-center"],["flex-col", "flex flex-col"],["text-ellipsis", "truncate"],["icon-btn","text-16 inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-primary !outline-none",],],//正则rules: [[/^bc-(.+)$/, ([, color]) => ({ "border-color": `#${color}` })],["card-shadow",{"box-shadow":"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",},],],theme: {colors: { primary: "var(--primary-color)", dark_bg: "var(--dark-bg)" },},
});
vite.config.ts中注入
import unocss from 'unocss/vite'plugins: [unocss(),react()]//unocss一定要放react之前
处理unocss写入标签报错

src目录下新建 html.d.ts

//react
import type {AttributifyAttributes} from '@unocss/preset-attributify'
declare module "react"{interface HTMLAttributes<T> extends AttributifyAttributes {}//tsx标签写uno不报错
}
//vue
import type {AttributifyAttributes} from '@unocss/preset-attributify'
declare module "@vue/runtime-dom"{interface HTMLAttributes extends AttributifyAttributes {}//tsx标签写uno不报错
}

在这里插入图片描述
unocss的插件

配置2(案例)

在这里插入图片描述
在这里插入图片描述

unocss配置
Vue3 学习笔记 —— scoped、tailwind、unocss 原子化、Vue3 样式新特性
重新构想原子化CSS

http://www.dinnco.com/news/7841.html

相关文章:

  • 昆明网站建设公司seo外包软件
  • 网站建设中企动力公司网站友链交换平台
  • 保定专业网站制作域名注册哪个网站好
  • 深圳建设工程交易服务网站优化设计电子课本
  • 独立商城系统网站建设百度打开
  • 微信公众平台官方网站登录免费收录网站
  • wordpress 本地环境整站优化案例
  • 网站的盈利方式广州网站优化公司排名
  • 云南网站设计公司长春关键词优化排名
  • 网站批量添加内容网络营销环境分析主要包括
  • 电子商务网站建设实训网站seo策划方案
  • 360网站推广怎么做linux网站入口
  • 营销网站建设企划案例成人培训班有哪些课程
  • 东丽做网站公司关键字搜索引擎
  • 网站屏蔽中文浏览器seo外包公司如何优化
  • 自己如何建设微信网站网络营销渠道
  • 织梦旅游网站seo推广培训资料
  • 网站建设杭州最便宜百度投诉中心电话24个小时
  • 注册网站域名需要什么资料医疗器械百度在线提问
  • 找别人做网站交货时应该注意什么百度一下下载安装
  • 多种不同产品的网站怎么做seo培训总结精辟句子
  • 黑户可做网站北京疫情最新消息情况
  • 电商网站seo热搜榜上能否吃自热火锅
  • 淘宝做网站骗局朝阳区seo搜索引擎优化怎么样
  • 手机网站淘宝客怎么做崇左seo
  • 中山网站建设乐云seo模板中心百度手机关键词排名工具
  • 找个公司做网站需要注意什么条件购物网站如何推广
  • 怎样注册网站做销售网络营销工具介绍
  • 哪些网站是单页面应用程序seo技术培训海南
  • 阿里云centos7做网站注册网站免费注册