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

利用CSS3为body创建背景网格

  •  
  •   leohxj ·
    leohxj · May 15, 2013 · 4402 views
    This topic created in 4921 days ago, the information mentioned may be changed or developed.
    代码如下:
    body {
    background: -webkit-linear-gradient(top, transparent 23px, green 24px),
    -webkit-linear-gradient(left, transparent 23px, green 24px);
    background-size: 24px 24px;
    }
    这里举例的是产生24px的网格。
    我觉得可以用来排版,不知道有没有用。
    7 replies  •  1970-01-01 08:00:00 +08:00
    Sivan
    Sivan
    May 15, 2013❤️4
    1
    这里也有一些 CSS3 做的背景图 http://lea.verou.me/css3patterns/

    不过还是感觉「一只公鸡要下蛋,不是他的活他要干。」
    underone
    underone
    May 15, 2013❤️1
    2
    @Sivan 哈哈哈
    nocoo
    nocoo
    May 15, 2013❤️1
    3
    @Sivan 额...
    leohxj
    leohxj
    OP
    May 15, 2013
    4
    @Sivan 。。。。感谢分享
    flashsoft
    flashsoft
    May 26, 2013
    5
    既然都CSS3了,还不如base64一张图呢
    leohxj
    leohxj
    OP
    May 26, 2013
    6
    @flashsoft 怎么用?
    flashsoft
    flashsoft
    May 27, 2013
    7
    @leohxj http://css-tricks.com/using-svg/ SVG的例子,其实PNG等其他各种图片也是OK的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3057 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 134ms · UTC 04:41 · PVG 12:41 · LAX 20:41 · JFK 23:41
    ♥ Do have faith in what you're doing.