怎么用CSS调整背景图的大小

来自:互联网
时间:2020-11-12
阅读:

属性介绍:

background-size 属性规定背景图像的尺寸。

语法:

background-size: length|percentage|cover|contAIn;

属性值介绍:

怎么用<a href=https://www.freexyz.cn/dev/css/ target=_blank class=infotextkey>CSS</a>调整背景图的大小

举例:

div
{
background:url(img_flwr.gif);
background-size:80px 60px;
background-repeat:no-repeat;
}
返回顶部
顶部