我正在使用 Wordpress 主题“Illdy”(https://colorlib.com/illdy/)
我想在“超大屏幕”标题图片的顶部添加一张图片。图片应位于超大屏幕标题的中央,并具有响应性。
如果有人能给我建议如何做到这一点,我将不胜感激!
谢谢!
一个例子:
最佳答案
你可以这样做,当然你需要改变顶部和左侧以获得你想要的正确定位。
.images {
position: relative;
top: 0;
}
.image_1 {
position: relative;
top: 0;
left: 0;
}
.image_2 {
position: absolute;
top: 150px;
left: 200px;
text-align: center;
}
<div class="images">
<img class="image_1" src="http://placehold.it/1500x600/ff0000/" alt="">
<img class="image_2" src="http://placehold.it/700x300/000000/" alt="">
</div>
关于html - 在标题图片顶部添加图片 (Wordpress),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38304693/