手机访问时重复背景图

body{

        background-image: url("/asset/images/0.jpg");
        background-position:center;
        overflow-x:hidden;
    background-attachment: fixed;
        background-size:100% ;

    }

手机访问时裁剪中间位置作为全屏背景图

body{

     background-image: url("/asset/images/0.jpg");
     background-position:center;
    background-size:cover;
    overflow-x:hidden;
    background-repeat:repeat-x;
    background-attachment:fixed;

    }


电脑访问时全屏背景图,手机访问时重复背景图

body{
 user-select: none; 
 background-position:center;
 
    background-size: 100%;

overflow-x:hidden;


    background-repeat: unset;


background-attachment:fixed;
 max-width:100%;
    float:left;
      clear:both;
  

    }