拉伸PNG背景图片很容易:
.stretched-logo-bg {
background: url("../img/curve.png") center center no-repeat;
background-size: 100% 100%;
}
但是这在使用SVG背景时无法实现。
.stretched-logo-bg {
background: url("../img/curve.svg") center center no-repeat;
background-size: 100% 100%;
}
在Chrome 52中,图片不会被拉伸,它将保持其纵横比并居中显示。