【问题标题】:Internet Explorer hides php content [closed]Internet Explorer 隐藏 php 内容 [关闭]
【发布时间】:2013-08-14 00:53:13
【问题描述】:

问题是我没有那么先进,所以我肯定做错了什么..

他网站上的第一页在 Chrome 和 Firefox 上正确打开, 但在 Internet Explorer 上,页脚图像粘在标题图像上,中间隐藏了两个图像。

网站:http://www.joniart.com

我尝试制作一个类似的登陆 html 页面,包含 <div> 内容,但问题仍然存在。

【问题讨论】:

  • php内容是什么意思
  • validator.w3.org/… 显示 15 个错误和 1 个警告。修复错误,然后看看它是否有效。
  • 您的 HTML 无效,因此在不同浏览器中的呈现方式可能不同。尝试使用validator.w3.org 查找并修复无效标记。

标签: html css internet-explorer


【解决方案1】:

你的问题是这些元素的高度:

<img width="355" height="inherit" alt="Lietuviskai" src="http://joniart.com/wp-content/themes/tut/static_images/ranka_k.jpg" border="0" complete="complete"/>

给他们一个真实的高度

<img width="355" height="300" alt="Lietuviskai" src="http://joniart.com/wp-content/themes/tut/static_images/ranka_k.jpg" border="0" complete="complete"/>

它们应该可以工作。

来自 MDN:

身高

以 HTML5 CSS 像素或 HTML 4 像素为单位的图像高度 像素或百分比。

我认为inherit 不是有效值。

来源:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img

【讨论】:

  • 你现在有两倍的宽度...
  • 是的,刚刚注意到。固定。
  • 非常感谢!我说它一定非常愚蠢;))
猜你喜欢
  • 2020-02-12
  • 1970-01-01
  • 2017-11-23
  • 2012-12-11
  • 2010-12-06
  • 1970-01-01
  • 2014-06-25
  • 1970-01-01
  • 2012-10-08
相关资源
最近更新 更多