最佳答案
<div class="trading-img-box">
<a href = "javascript:void(0)" onclick = "document.getElementById('trading6').style.display='block';document.getElementById('body-below-otherpage-small-trading').style.display='none'">
<img class="trading-img" src="img/trading6.png">
**<a>**
<h1 class="trading-h1">Marble</h1>
<p class="trading-p">We set ourselves at the..</p>
</div>
在此框中,您不会关闭 anchor 标记。
同时补充:
<p style="height:0; clear:both;"></p>
为确保您的背景正确环绕,您可以添加 overflow:auto 代替。但我在歌剧中遇到过有时会强制滚动的问题。
关于css - 图像框对齐问题是 IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11519734/