1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

请教背景居中的问题

本帖由 sojay2009-10-14 发布。版面名称:前端开发

  1. sojay

    sojay New Member

    注册:
    2005-12-19
    帖子:
    3,036
    赞:
    13
    www.mop.com的背景图
    在任何分辨率下都是以中间对齐来显示的,
    感觉很强大,这个要怎么实现:question:
     
  2. sojay

    sojay New Member

    注册:
    2005-12-19
    帖子:
    3,036
    赞:
    13
    自己找到代码了:)
    background-position: center
     
  3. A君

    A君 Well-Known Member

    注册:
    2005-08-31
    帖子:
    19,987
    赞:
    98
    楼主很强大!
     
  4. Ulysses

    Ulysses New Member

    注册:
    2006-02-05
    帖子:
    10,018
    赞:
    16
    樓主啊,我鄙視你!
     
  5. 西子宜

    西子宜 Well-Known Member

    注册:
    2005-09-05
    帖子:
    15,739
    赞:
    62
    樓主啊,我鄙視你!
     
  6. bootini

    bootini Active Member

    注册:
    2008-11-01
    帖子:
    2,084
    赞:
    1
    樓主啊,我鄙視你!
     
  7. shangjay

    shangjay New Member

    注册:
    2006-01-13
    帖子:
    3,530
    赞:
    15
    那我也鄙视一下好了。
     
  8. oicq我爱玩

    oicq我爱玩 New Member

    注册:
    2006-01-27
    帖子:
    5,205
    赞:
    28