利用css3背景位置完成拼图

 1     .duo {
 2             width: 623px;
 3             height: 417px;
 4             margin: 100px auto;
 5             background: url(images/bg1.png) left top no-repeat,
 6                         url(images/bg2.png) right top no-repeat,
 7                         url(images/bg3.png) right bottom no-repeat,
 8                         url(images/bg4.png) left bottom no-repeat,
 9                         url(images/bg5.png) center center no-repeat;
10             background-color: #FFF;
11         }

 

posted @ 2018-01-10 17:29  前端极客  阅读(1874)  评论(0编辑  收藏  举报