多背景

作者: 琪33 | 来源:发表于2018-04-25 10:52 被阅读0次
    <style>
        .box{
            width: 623px;
            height: 416px;
            border: 1px solid #000;
            margin:100px auto;
            /* 给盒子加多个背景,按照背景语法格式书写,多个背景使用逗号隔开 */
            background: url(images/bg1.png) no-repeat left top
                        ,url(images/bg2.png) no-repeat right top
                        ,url(images/bg3.png) no-repeat right bottom
                        ,url(images/bg4.png) no-repeat left bottom
                        ,url(images/bg5.png) no-repeat center;
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>

相关文章

网友评论

      本文标题:多背景

      本文链接:https://www.haomeiwen.com/subject/ppjelftx.html