CSS background-size

上一页 下一页

示例中展现不同的background-size属性值.

选择不同的值查看对应结果:

background-size: auto;
background-size: contain;
background-size: cover;
background-size: 50%;
background-size: 30px;
background-size: 60px;
A demonstraion of the different background-size values.
A demonstraion of the different background-size values.
A demonstraion of the different background-size values.
A demonstraion of the different background-size values.
A demonstraion of the different background-size values.
A demonstraion of the different background-size values.

要使用更多方法,请在编辑器中试一下: 亲自试一试 ❯