4.7 (案例) 多张背景图

多张背景图.png
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景图位置</title>
    <style type="text/css">
    *{
        padding: 0;margin:0;
    }
div{
/*  background-image:url(images/1.jpg), url(images/2.jpg),url(images/3.jpg);
    background-repeat: no-repeat,no-repeat, no-repeat; 
    background-position: 25% 100%,center center, right top; */   
/*  background: url(images/1.jpg) 25% 100% no-repeat   ,url(images/2.jpg)  center center no-repeat  , url(images/3.jpg) right top no-repeat  ;*/
    background: url(images/z-shu.png) 0 0 no-repeat   ,url(images/z-shu.png)  0 100%  no-repeat  , url(images/z-shu.png) 100% 100% no-repeat , url(images/z-shu.png) 100% 0 no-repeat  ;
    width: 900px;        
    padding: 190px 0px; 
    }
    </style>
</head>
<body>
<div></div>
</body>
</html>
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容