微软输入法主题无效问题
问题及解决办法windows11 自带的最新版微软输入法是支持主题设置的,但是在个性化设置发现并没有生效,其实是开了兼容性导致使用的是老版的微软输入法,只要关闭兼容性开关即可。
延申问题使用微软输入法时,在切换软件输入时可能会自动打开兼容性开关微软拼音设置中,兼容性开关无法固定的问题
【华为电脑管家】打开多屏协同会自动修改微软拼音输入法兼容性的解决方案
经网络资料查询及验证,确实是华为电脑管家更改的,通过上述方法能够解决此问题。
Oracle CentOS No module named ‘librepo’
使用Oracle CentOS 8 安装各种软件的时候会报Failed loading plugin "osmsplugin": No module named 'librepo'
解决方法sudo dnf install python3-librepo
微信小程序图片在开发环境显示正常,发布上去不显示的问题
问题最近用uni-app写了个小程序,使用uni-fab组件时发现在开发环境icon能正常展示,发布上去确不能正常显示。
结果经网上查找资料得出问题所在,原因是图片使用了中文名称,更改为全英文就没这个问题了。
注意:大小写不一样在开发环境也是能正常展示的,发布上去不显示
vue中控制v-for渲染長度
方法一 截取<temple v-for="(item,index) in list.slice(0, 2)"></temple>
方法二 通过v-if控制<temple v-for="(item,index) in list"> <div v-if="index < 3"></div></temple>
vue 多层组件slot
页面<!- 组件A -><ComponetB> <temple #left>哈哈哈</temple></ComponetB>
<!- 组件B -><ComponetC> <temple #left> <slot name="left"></slot> </temple></ComponetC>
<!- 组件C -><temple> <header>Hello</header> <slot name="left"></slot></temple>
美化windows terminal
安裝 Windows Terminalwindows10系统需要从Microsoft Store安装或者以下命令
winget install Microsoft.WindowsTerminal
windows11系统自带Windows Terminal
安装最新版PowerShellwinget install Microsoft.PowerShell
安装ohmyposhwinget install JanDeDobbeleer.OhMyPosh -s wingetInstall-Module oh-my-posh -Scope CurrentUser -Force
待编辑。。。
curl (3) Illegal characters found in URL
windows下保存的shell脚本容易会报curl: (3) Illegal characters found in URL
解决方案
tr -d '\r' < build.sh > buildNew.sh
Hexo跳过指定文件的渲染,skip_render参数的设置
skip_render 配置其实很简单,但是配完一定要执行 hexo clean,否则会不生效。
例如:
skip_render: "mypage/**/*"# 将会直接将 `source/mypage/index.html` 和 `source/mypage/code.js` 不做改动地输出到 'public' 目录# 你也可以用这种方法来跳过对指定文章文件的渲染skip_render: "_posts/test-post.md"# 这将会忽略对 'test-post.md' 的渲染
文档
css中的inherit initial revert unset
inherit inherit关键字使得元素获取其父元素的计算值。它可以应用于任何CSS属性,包括CSS简写all。
对于继承属性,inherit关键字只是增强了属性的默认行为,通常只在覆盖原有的值的时候使用。
继承始终来自文档树中的父元素,即使父元素不是包含块。
示例/* 设置二级标题的颜色为绿色 */h2 { color: green; }/* ...but leave those in the sidebar alone so they use their parent's color */#sidebar h2 { color: inherit; }
在下面这个例子中,如果sidebar 中h2元素的div匹配下面的规则的话,颜色会变成蓝色。
div#current { color: blue; }
兼容性全支持
initialinitialCSS关键字将属性的初始(或默认)值应用于元素。不应将初始值与浏览器样式表指定的值混淆。它可以应用于任何CSS属性。这包括CSS简写all,initial可用于将所有CS ...
windows git缩写配置
找到bash.bashrc文件64位git 默认地址是C:\Program Files\Git\etc\bash.bashrc
32位git 应该是C:\Program Files (x86)\Git\etc\bash.bashrc
缩写命令以下命令参考的ohmyzsh的git.plugin.zsh,在原有的基础上删除部分命令
alias g='git'alias ga='git add'alias gaa='git add --all'alias gapa='git add --patch'alias gau='git add --update'alias gav='git add --verbose'alias gap='git apply'alias gapt='git apply --3way'alias gb='git branch'alias gba='git branch -a& ...