css - 图像框对齐问题是 IE

标签 css image

在此处输入图片描述请帮助我解决 IE 中的这个问题。 它在 Chrome、FF 中运行良好

请检查此 URL http://scs-qa.com/panamera/trading.html

enter image description here

最佳答案

<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/

相关文章:

html - 图像按比例填充 div 而不使用背景大小 : cover or object-fit: cover

html - 外部 div 高度不随着内部 img 扩展

jquery - 在多个 div 中定位一个 div

html - 仅限 Safari - 菜单出现在错误的位置

css - 在平板电脑上显示时,页眉和页脚不是整个页面宽度

ios - 从iphone上传图片到服务器文件夹

image - 将图片上传到grails的web-app/image目录

html - CSS 固定 header 仅在元素透明时才与元素重叠

php - 在请求期间使用 PHP 对关键 CSS 进行优先级排序

ios - 在 viewDidLoad block UI 中对图像使用 GaussianBlur