[按此打開]
[隱藏]
I want to place 2 images on top of each other (Using position absolute) and want to have a button under the image. But i tried many different way still cannot work, the image height and aspect ratio may change using javascript. Could anyone tell me how? Thanks
<div class="relative" style="background-color:red;position:relative">
<div style="position:relative;">
<div style="position:absolute;">
<img src="https://s.yimg.com/fz/api/res/1.2/Qtvq9Dn9szgyB3jeRMdI9w--~C/YXBwaWQ9c3JjaGRkO2ZpPWZpbGw7aD0yODI7cHhvZmY9MDtweW9mZj0wO3E9OTU7dz01MDA-/https://s.yimg.com/am/60d/33afb62ded1c15f21380578eb03cd632"/>
</div>
<div style="position:absolute;">
<img src="https://www.google.com.hk/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"/>
</div>
</div>
<div style="position:absolute;">
<button>How to put under the picture.</button>
</div>
</div>