会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fanly_hh
博客园
首页
新随笔
联系
订阅
管理
随笔 - 13
文章 - 3
评论 - 0
阅读 -
3292
2022年2月23日
利用混合字体-节省字体大小
摘要: 参考https://www.cnblogs.com/xiaoyuxy/p/12038699.html#part_five 引入字体 @font-face { font-family: 'MPLUS1'; font-display: block; src: url('../fonts/MPLUS1-V
阅读全文
posted @ 2022-02-23 15:45 fanly_hh
阅读(91)
评论(0)
推荐(0)
2022年2月22日
通过rem适配手机端
摘要: 1.安装"@alitajs/hd"插件 2.在配置文件里配置 plugins: ['@alitajs/hd'],hd: { px2rem: { rootValue: 100, selectorDoubleRemList: [/.ant-/], },} 3.参考用less写公共方法 .px2rem(@
阅读全文
posted @ 2022-02-22 13:53 fanly_hh
阅读(166)
评论(0)
推荐(0)
2022年2月21日
react 项目中引入.css/.less/图片
摘要: eg:index.less .content{ p{ font-size:16px; } } 在react组件中引入less 1.import "../styles/index.less" <div className={content}></div> 2.import style from '..
阅读全文
posted @ 2022-02-21 18:56 fanly_hh
阅读(487)
评论(0)
推荐(0)
2022年2月18日
umi搭建项目 多语言切换 遇到的不能解析的问题
摘要: 问题:浏览器刚进来的时候,页面不能解析正确的语言解决:useEffect(() => { if(!window.localStorage.getItem("umi_locale")){ //关键 setLocale('en-US', false);//关键 } let language = navi
阅读全文
posted @ 2022-02-18 15:53 fanly_hh
阅读(391)
评论(0)
推荐(0)
同一字体 不同样式 在css中引入方式
摘要: <style> @font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url('./fonts/Roboto-Light.ttf'); } @font-fa
阅读全文
posted @ 2022-02-18 15:13 fanly_hh
阅读(169)
评论(0)
推荐(0)
css 设置 从某个单词处强制换行
摘要: css设置:white-space:pre-line 文字中设置:"文字\n微博"
阅读全文
posted @ 2022-02-18 14:34 fanly_hh
阅读(71)
评论(0)
推荐(0)
2022年2月14日
import * as xxx from 的含义
摘要: 参考 https://blog.csdn.net/thlzjfefe/article/details/108658206 一. 把所有的输出包裹到obj对象里 export function f1(){} export function f2(){} import * as Fn from './i
阅读全文
posted @ 2022-02-14 14:33 fanly_hh
阅读(392)
评论(0)
推荐(0)
js中 ?? 和 ?. 的意思
摘要: 1.空值合并操作符?? 只有当左侧为null或者undefined 时候,才会返回右侧的数,否则返回左侧操作数 与(||)不同,或操作符会在左侧操作数为假值时返回右侧操作数,例如(‘’ 或者 0) null ?? 'default string' default string 0 ?? 42 0 0
阅读全文
posted @ 2022-02-14 14:02 fanly_hh
阅读(745)
评论(0)
推荐(0)
2022年2月9日
react项目中支持多种语言(umi)
摘要: 参考:https://blog.csdn.net/huanhuan03/article/details/120649350
阅读全文
posted @ 2022-02-09 14:31 fanly_hh
阅读(73)
评论(0)
推荐(0)
2022年1月25日
youtube-调用视频列表的 某个视频
摘要: 参考:https://blog.csdn.net/zzz_zjz/article/details/105006921 1.调用播放列表接口 https://developers.google.com/youtube/v3/docs/playlists/list (将channelId 和YOUR_A
阅读全文
posted @ 2022-01-25 17:40 fanly_hh
阅读(73)
评论(0)
推荐(0)
下一页
公告
昵称:
fanly_hh
园龄:
3年7个月
粉丝:
0
关注:
0
<
2025年6月
>
日
一
二
三
四
五
六
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
点击右上角即可分享