diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 93a56dbe..2f901185 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -79,6 +79,7 @@ export default { { text: '实现高度过渡', 'link': '/hand-notes/CSS/实现高度过渡'}, { text: 'CSS实现类似微信头像效果', 'link': '/hand-notes/CSS/CSS实现类似微信头像效果'}, { text: '虚线边框', 'link': '/hand-notes/CSS/虚线边框'}, + { text: '图片加载出错样式设置', 'link': '/hand-notes/CSS/图片加载出错样式设置'}, ] }, { diff --git a/docs/favorites/Linux/index.md b/docs/favorites/Linux/index.md index 5cf73838..5ebfc362 100644 --- a/docs/favorites/Linux/index.md +++ b/docs/favorites/Linux/index.md @@ -6,4 +6,4 @@ layout: doc - [Linux命令大全搜索工具](https://github.com/jaywcjlove/linux-command) -- [explainshell.com](https://explainshell.com/) +- [explainshell](https://explainshell.com/) diff --git "a/docs/hand-notes/CSS/\345\233\276\347\211\207\345\212\240\350\275\275\345\207\272\351\224\231\346\240\267\345\274\217\350\256\276\347\275\256.md" "b/docs/hand-notes/CSS/\345\233\276\347\211\207\345\212\240\350\275\275\345\207\272\351\224\231\346\240\267\345\274\217\350\256\276\347\275\256.md" new file mode 100644 index 00000000..89a2d3c4 --- /dev/null +++ "b/docs/hand-notes/CSS/\345\233\276\347\211\207\345\212\240\350\275\275\345\207\272\351\224\231\346\240\267\345\274\217\350\256\276\347\275\256.md" @@ -0,0 +1,86 @@ +--- +layout: doc +--- + +# 图片加载出错样式设置 + +:::tip +**冷知识**:图片加载出错时,为`img`元素设置的伪元素`::before/::after`会生效,图片正常加载时,不会生效 +::: + +## 代码展示 + +> `html`代码 + + +```html + + +
+ + + +