为什么使用background简写效果不对
将
.door-left {
left: 0%;
background: url(http://img1.sycdn.imooc.com//55ade1140001050d00910231.png);
background-size: 100% 100%;
}
.door-right {
left: 50%;
background: url(http://img1.sycdn.imooc.com//55ade12100019f5b00910231.png);
background-size: 100% 100%;
}
写成
.door-left{
left:0%;
background: url('http://img1.sycdn.imooc.com//55ade1140001050d00910231.png') no-repeat 100% 100%;
}
.door-right{
left:50%;
background: url('http://img1.sycdn.imooc.com//55ade12100019f5b00910231.png') no-repeat 100% 100%;
}
那个门就有缝了,这种简写为什么不对呢