Div背景图片

时间:2019-04-19 22:17:35

标签: html css background

我无法将背景图像放置在CSS中。在这里的另一个问题的帮助下,我终于使图像按我想要的方式定位。但是,即使我调用了“ no-repeat”后台功能,现在图片仍在重复。

.pic{
	position: absolute;
	right: 50%;
	width:50%;
	height: 100%;
	background-repeat: no repeat;
	background-image: url("Twitter_Bird.svg.png");
	background-position: 150px;
	background-color: #1c94e0;
	
	
}

1 个答案:

答案 0 :(得分:0)

您那里似乎有错字? (this.startListening()

尝试写不重复

相关问题