background: url("../image/111.jpg") repeat-x scroll 0 0 transparent;
margin-bottom:0px;
margin-top:0px;
margin-left:0px;
margin-right:0px;
z-index:-1;
width: 100%;
height: 100%;
background:url(image/1.jpg) no-repeat; background-size:auto 100%;
作用是:背景图片路径;背景图片不重复;背景图片高度自动,背景图片宽度100%自适应。
不过这种形式一般情况用的比较少,因为图片会变形。
有没有把y拉伸的 不用重复
有没有把y拉伸的 不用重复
追答拉伸啊?这个没有试过,也没有听说过!我只知道可以平铺!