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

2015-02-04 11:36:46 +08:00
 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); }
7387 次点击
所在节点    分享创造
25 条回复
yeluozhiqiu1981
2015-02-04 11:58:40 +08:00
感觉不错的样子,换上试试
xiaojj
2015-02-04 12:29:10 +08:00
不要每次刷新就换了吧,一个小时换一次会比较好吧
qianlifeng
2015-02-04 12:33:49 +08:00
Pengg
2015-02-04 12:35:26 +08:00
@xiaojj
@qianlifeng
相关接口可以参考 https://unsplash.it/
giuem
2015-02-04 12:37:07 +08:00
不知道国内有没有类似的网站
wzxjohn
2015-02-04 12:41:37 +08:00
zzutmebwd
2015-02-04 12:50:26 +08:00
Saber
2015-02-04 13:18:30 +08:00
瞬间高大上了,然后瞬间手机流量飞速增长...
cnZary
2015-02-04 13:22:44 +08:00
换bing的背景会好很多
fyhqy
2015-02-04 14:14:13 +08:00
这个不错
Luzifer
2015-02-04 14:39:50 +08:00
换bing的背景会好很多
Pengg
2015-02-04 14:50:03 +08:00
@linzianplay bing首页的背景图片能够自由使用么?
geew
2015-02-04 17:36:50 +08:00
哈哈 换了个背景 v2也是萌萌哒的啦

lei2xiao
2015-02-04 17:44:17 +08:00
赞。这个好!
cnZary
2015-02-04 20:40:41 +08:00
@Pengg 有东西能提取到,,,,估计是可以
DivivitYan
2015-02-04 20:53:34 +08:00
这个好支持下
pengg说的对,bing的背景好看啊
akaayy
2015-02-04 21:00:00 +08:00
@geew 原图求分享 *^___^*
sennes
2015-02-04 21:05:16 +08:00
@geew 壁纸好看!能否分享一下,谢谢!
geew
2015-02-05 10:13:29 +08:00
Pengg
2015-02-05 11:52:07 +08:00

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

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

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

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

© 2021 V2EX