-3
HTML把圖像彼此相鄰
<div class="button">
<a href="#">
<img id="img1" src="icons/onas1.svg" alt="O nas[enter image description here][1]">
</>
<a href="#">
<img id="img2" src="icons/kontakt1.svg" alt="kontakt">
</a>
</div>
</div>
CSS:
div.button img{
position: fixed;
height: 10%;
display: inline-block;
}
嘿,我怎樣才能把這兩個圖像彼此相鄰的?
刪除'位置:fixed' – glennsl
..或將其移動到'.button'類? –