首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当插入相同颜色的背景图像时,背景色不可见。

当插入相同颜色的背景图像时,背景色不可见。
EN

Stack Overflow用户
提问于 2016-02-04 12:11:35
回答 1查看 34关注 0票数 0

我有相同颜色的向下箭头的背景和背景图像。当我调用背景图像时,背景颜色就会被隐藏。我拥有相同颜色的背景色和背景图像。

代码语言:javascript
复制
.customer-bg{
	background: #e1efcc url(../img/bottom-arrow.png) no-repeat center bottom ;
}
.customer-bg p{
	font-family: 'Karla', sans-serif;
	font-size: 16px;
	color:#666;
	padding: 30px 7px 60px 7px;
}
代码语言:javascript
复制
<div class="customer-bg">
						<p>
							Semper ac dolor vitae msan. Cras interdum hendreritnia vitae molestie interdum.
						</p>
					</div>

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-02-04 12:15:44

使用类似于以下演示的速记背景属性

而不是这样:

代码语言:javascript
复制
.customer-bg{
        background: #e1efcc;
        background: url(../img/bottom-arrow.png) no-repeat center bottom ;
    }

使用:

代码语言:javascript
复制
 .customer-bg{
        background: #e1efcc url(http://www.clker.com/cliparts/3/f/f/d/1194985689770236807arrow_-_next_01.svg.med.png) no-repeat center bottom;
    }

但是,如果您的bg图像没有显示,请检查图像路径:)

更新:

根据您的要求,我尝试了这个绿色向下箭头图标的演示

希望这能帮上忙!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35200691

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档