CSS CSS - 调整背景图像的大小

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS CSS - 调整背景图像的大小相关的知识,希望对你有一定的参考价值。

#resize-image {
   /* Just imagine that the image_1.png is 200x400px */
   background:url(image_1.png) top left no-repeat;
   -moz-background-size: 100px 200px;
   -o-background-size: 100px 200px;
   -webkit-background-size: 100px 200px;
}

以上是关于CSS CSS - 调整背景图像的大小的主要内容,如果未能解决你的问题,请参考以下文章