爱意满满的作品展示区。
Pengg

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

  •  1
     
  •   Pengg · Feb 4, 2015 · 9036 views
    This topic created in 4295 days ago, the information mentioned may be changed or developed.

    每次刷新随机切换背景

    截图:

    img1

    img2

    图片资源来自: 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); }
    
    25 replies  •  2015-07-10 10:42:48 +08:00
    yeluozhiqiu1981
    yeluozhiqiu1981
    Feb 4, 2015
    1
    感觉不错的样子,换上试试
    xiaojj
    xiaojj
    Feb 4, 2015
    2
    不要每次刷新就换了吧,一个小时换一次会比较好吧
    Pengg
    Pengg
    OP
    Feb 4, 2015
    4
    @xiaojj
    @qianlifeng
    相关接口可以参考 https://unsplash.it/
    giuem
    giuem
    Feb 4, 2015 via Android
    5
    不知道国内有没有类似的网站
    wzxjohn
    wzxjohn
    Feb 4, 2015
    6
    zzutmebwd
    zzutmebwd
    Feb 4, 2015 via Android
    7
    慢
    Saber
    Saber
    Feb 4, 2015
    8
    瞬间高大上了,然后瞬间手机流量飞速增长...
    cnZary
    cnZary
    Feb 4, 2015
    9
    换bing的背景会好很多
    fyhqy
    fyhqy
    Feb 4, 2015
    10
    这个不错
    Luzifer
    Luzifer
    Feb 4, 2015
    11
    换bing的背景会好很多
    Pengg
    Pengg
    OP
    Feb 4, 2015
    12
    @linzianplay bing首页的背景图片能够自由使用么?
    geew
    geew
    Feb 4, 2015❤️1
    13
    哈哈 换了个背景 v2也是萌萌哒的啦

    lei2xiao
    lei2xiao
    Feb 4, 2015
    14
    赞。这个好!
    cnZary
    cnZary
    Feb 4, 2015
    15
    @Pengg 有东西能提取到,,,,估计是可以
    DivivitYan
    DivivitYan
    Feb 4, 2015
    16
    这个好支持下
    pengg说的对,bing的背景好看啊
    akaayy
    akaayy
    Feb 4, 2015
    17
    @geew 原图求分享 *^___^*
    sennes
    sennes
    Feb 4, 2015
    18
    @geew 壁纸好看!能否分享一下,谢谢!
    geew
    geew
    Feb 5, 2015❤️1
    19
    Pengg
    Pengg
    OP
    Feb 5, 2015
    20
    Pengg
    Pengg
    OP
    Feb 5, 2015
    22
    擦, 回复怎么没个预览
    cnZary
    cnZary
    Feb 5, 2015
    23
    @Pengg 刚睡醒不久呢...
    romisanic
    romisanic
    Feb 5, 2015
    24
    已用
    不错~
    DivivitYan
    DivivitYan
    Jul 10, 2015
    25
    http://oss.so/blog/55.html
    这个不知到有没有参考价值,抓去bing每天的无码高清大图
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   556 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 19:44 · PVG 03:44 · LAX 11:44 · JFK 14:44
    ♥ Do have faith in what you're doing.