V2EX 自定义 css,随机背景图片

2015 年 2 月 4 日
 Pengg

每次刷新随机切换背景

截图:

图片资源来自: https://unsplash.it/

css代码:

html, body { height: 100%; }
body { background-color: #505770; background-image: url(https://unsplash.it/1600/900?random); background-repeat: no-repeat; background-attachment: fixed; background-position: center 0; background-size: cover; }
#Top{ position: fixed; top: 0; right: 0; left: 0; background: #fff; background: rgba(255,255,255,.94); box-shadow: 0 0 1px 0 rgba(0,0,0,.3),0 0 6px 2px rgba(0,0,0,.15); }
#Wrapper{ padding-top: 45px; background: none; }
.box{ border: none; border-radius: 2px; background: rgba(255,255,255,.98); box-shadow: 0 0 2px rgba(0,0,0,.2); }
#Bottom{ border: none; background: rgba(255,255,255,.94); box-shadow: 0 0 2px rgba(0,0,0,.2); }
8863 次点击
所在节点    分享创造
25 条回复
yeluozhiqiu1981
2015 年 2 月 4 日
感觉不错的样子,换上试试
xiaojj
2015 年 2 月 4 日
不要每次刷新就换了吧,一个小时换一次会比较好吧
qianlifeng
2015 年 2 月 4 日
Pengg
2015 年 2 月 4 日
@xiaojj
@qianlifeng
相关接口可以参考 https://unsplash.it/
giuem
2015 年 2 月 4 日
不知道国内有没有类似的网站
wzxjohn
2015 年 2 月 4 日
zzutmebwd
2015 年 2 月 4 日
Saber
2015 年 2 月 4 日
瞬间高大上了,然后瞬间手机流量飞速增长...
cnZary
2015 年 2 月 4 日
换bing的背景会好很多
fyhqy
2015 年 2 月 4 日
这个不错
Luzifer
2015 年 2 月 4 日
换bing的背景会好很多
Pengg
2015 年 2 月 4 日
@linzianplay bing首页的背景图片能够自由使用么?
geew
2015 年 2 月 4 日
哈哈 换了个背景 v2也是萌萌哒的啦

lei2xiao
2015 年 2 月 4 日
赞。这个好!
cnZary
2015 年 2 月 4 日
@Pengg 有东西能提取到,,,,估计是可以
DivivitYan
2015 年 2 月 4 日
这个好支持下
pengg说的对,bing的背景好看啊
akaayy
2015 年 2 月 4 日
@geew 原图求分享 *^___^*
sennes
2015 年 2 月 4 日
@geew 壁纸好看!能否分享一下,谢谢!
geew
2015 年 2 月 5 日
Pengg
2015 年 2 月 5 日

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/168131

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX