【发布时间】:2017-08-20 07:33:30
【问题描述】:
如何在我最喜欢的编辑器中将图像设置为背景?
我知道,我可以change the background color 并设置颜色主题,但我还没有找到一种方法来在背景中设置像壁纸一样的图像。
如何在 Atom 和/或 Notepad++ 中设置壁纸背景?
【问题讨论】:
标签: notepad++ atom-editor
如何在我最喜欢的编辑器中将图像设置为背景?
我知道,我可以change the background color 并设置颜色主题,但我还没有找到一种方法来在背景中设置像壁纸一样的图像。
如何在 Atom 和/或 Notepad++ 中设置壁纸背景?
【问题讨论】:
标签: notepad++ atom-editor
对于 Atom,您实际上可以在 File > Settings > Themes > "Choose a Theme" >"your stylesheet" 中设置一个带有 LESS 的 background。
我使用以下代码设置了背景图片:
body, /* body is only for the snippet */
.pane {
background: url("https://i.stack.imgur.com/1V0fC.jpg");
background-size: cover;
}
.editor { /* making it a bit transparent */
background: rgba(0, 0, 0, .75);
}
【讨论】: