zoukankan      html  css  js  c++  java
  • 背景图片的自定义


    body:


    .landing-bg {   height: 100%;   background: url(背景链接地址) no-repeat;   -webkit-background-size: cover;   -moz-background-size: cover;   -ms-background-size: cover;   -o-background-size: cover;    background-size: cover;   overflow: hidden; }



    Div上定义背景图片

    .s-skin-container {

    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    100%;
    z-index: -10;
    background-position: center 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    -webkit-background-size: cover;
    -o-background-size: cover;
    zoom: 1;

    }

     
    html {
      background: url(图片地址) no-repeat center center fixed;
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
     }  
    人如代码,规矩灵活;代码如诗,字句精伦。
  • 相关阅读:
    alpha冲刺9
    alpha冲刺8
    alpha冲刺7
    alpha冲6
    随堂小测-同学录
    alpha冲刺5
    任务3
    任务2
    任务1
    网站用户行为分析
  • 原文地址:https://www.cnblogs.com/xinlinux/p/3983666.html
Copyright © 2011-2022 走看看