我想将图像放置在背景图像上。背景包含在放置在包含div底部的div内。我想在放置在底部中心的背景图像顶部的右下角放置一个图像。如何在背景图像上放置图像
我试图使用两个背景图像,但无法将图像放置在重复div上,而没有在移动设备上放置的问题,因为文本区域缩小并将图像移动到容器下方。
我尝试将图像放在线上,但无法使其显示在背景的顶部。
关于什么是最好的方法会做什么的任何想法?
.gradient-bg.slide {
background: url("http://www.clker.com/cliparts/f/d/b/5/1206555848388219874chlopaya_Bird.svg.med.png") no-repeat left top, linear-gradient(#ffcd74, #f8981d);
/*background: #ffcd74;
background: -moz-linear-gradient(top, #ffcd74 29%, #f8981d 78%);
background: -webkit-linear-gradient(top, #ffcd74 29%,#f8981d 78%);
background: linear-gradient(to bottom, #ffcd74 29%,#f8981d 78%);*/
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffcd74', endColorstr='#f8981d', GradientType=0);
}
.slide_cloud {
background: url("https://preview.ibb.co/cyvOLv/harris_relativity_cloud_footer.png") no-repeat bottom center;
background-size: inherit;
padding: 20px;
height: 500px;
text-align: center;
}
.logo-image {
background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/2/2e/WikiSpecies_notext.svg/300px-WikiSpecies_notext.svg.png") no-repeat bottom right;
padding-top: 100px;
}
<div class="gradient-bg slide">
<div class="slide slide_cloud">
<h2>Generic Header</h2>
<div class="logo-image">
</div>
<div class="slide-content">
<div class="text">Generic text.</div>
</div>
</div>
</div>
欢迎的StackOverflow,你的问题应该包含一个[**最小的,完整的和可验证的实例**](http://stackoverflow.com/help/mcve )。 – hungerstar
你好@hungerstar,我已经包含了一个样本 – penmas
这并不完全清楚你想要的页面的样子。 –