CSS3设置多个背景

2019-03-03  本文已影响0人  _hider
第一种写法
background: url("p1.jpg") 0 0 no-repeat,
            url("p2.jpg") 200px 0 no-repeat,
            url("p3.jpg") 400px 201px no-repeat;
第二种写法
background-image:url("1.jpg"),url("2.jpg"),url("3.jpg");
background-position: 0 0, 200px 0, 400px 201px;
上一篇 下一篇

猜你喜欢

热点阅读