网页设计背景图片时怎么使图片不重复平铺

如题所述

.tabbg {
background-attachment: scroll;
background-image: url(images/tabbg.gif);
background-repeat: no-repeat;
background-position: left bottom;
}

调用:class="tabbg"

注意:CSS代码中的background-position: left bottom;就是定义背景图片的位置为左下,可根据具体需要做调整,如右上right top;左上left top;右下right bottom;等等。

如果想不重复,背景图要大点哦
温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-02-20
such a trifle would be farcically
相似回答