首页 > TAG信息列表 > js3

vue.js3: 使用全局变量(vue@3.2.37)

一,js代码: 1,main.js import { createApp } from 'vue' import App from './App.vue' import router from './route' //判断是否移动端的函数 const isMobileFunc = () => { let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|io

vue.js3: 使用全局css样式文件(vue@3.2.37)

一,创建全局css文件 创建global.css文件,保存全局样式,如图:   global.css的代码: .titleDiv { width:800px; text-shadow: 2px 2px 5px #777; line-height: 22px; font-size: 22px; color: rgb(90, 90, 90); margin-top: 20px; } .mainDiv { width

vue.js3: 引入外部字体文件(vue@3.2.36)

一,思源黑体和思源宋体的下载地址: 思源黑体 https://github.com/adobe-fonts/source-han-sans/releases 思源宋体 https://github.com/adobe-fonts/source-han-serif/releases 说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest