We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
可以同时设置背景色和背景图片;
背景图片在背景色之上;
如果背景图片是透明的png格式,则背景色也会显示出来;
如果设置background-size为一个数值,则指定的是背景图的width,此时height为auto,浏览器会按照比例设置height的值;
background-size
width
height
auto