-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'类? –