Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否设置背景? #34

Open
LinkCutTree opened this issue Aug 18, 2019 · 10 comments
Open

能否设置背景? #34

LinkCutTree opened this issue Aug 18, 2019 · 10 comments

Comments

@LinkCutTree
Copy link

No description provided.

@esofar
Copy link
Owner

esofar commented Aug 18, 2019

关于背景,本主题暂未支持自定义配置。因为不想搞的花里胡哨,偏离了主题特性。

自己添加也不难,找张大图上传获取外链,然后给 body 元素写个 background,最后在调试添加一些辅助样式就好。

@LinkCutTree
Copy link
Author

关于背景,本主题暂未支持自定义配置。因为不想搞的花里胡哨,偏离了主题特性。

自己添加也不难,找张大图上传获取外链,然后给 body 元素写个 background,最后在调试添加一些辅助样式就好。

我自己试着添加了图片,但是文本透明度似乎太高,请问如何调整?

@esofar
Copy link
Owner

esofar commented Aug 20, 2019

给个链接 和 问题截图

@LinkCutTree
Copy link
Author

@LinkCutTree
Copy link
Author

不知道文章的透明度是哪个

@esofar
Copy link
Owner

esofar commented Aug 20, 2019

抱歉,我上面回答有点随意了。你可以参考 这个小姐姐的博客添加背景。
https://www.cnblogs.com/zouwangblog/

body::before {
    background: url(https://img2018.cnblogs.com/blog/1646268/201907/1646268-20190709145111387-899901278.jpg) center/cover no-repeat;
    opacity: 0.05;
}

@LinkCutTree
Copy link
Author

那么如何设置标题与代码的透明度呢

@LinkCutTree
Copy link
Author

还是不太协调

@esofar
Copy link
Owner

esofar commented Aug 20, 2019

兄弟,不要太过分哦。自己 F12 审查元素调试,好吧。

#header {
    opacity: .5;
}
body::before {
    opacity: 0.1;
}

@LinkCutTree
Copy link
Author

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants