[英]Why won't some pictures on my website show up in IE?
在我可愛的新網站中,有些照片沒有顯示在IE(7)中。
這是URL: http : //highroadnewmexico.com/tour-artists.html
所有的藝術家都應該有照片,但是有些看起來會塌陷成水平線。
我已經嘗試了所有可以在網上找到的內容...感激不盡!
由於IE的解釋方式,您需要擺脫“ height:auto”行。
<img width="110" height="auto" class="Right" alt="sample art" src="art_pics/02-Cent.jpg"/>
您應該閱讀http://www.w3schools.com/tags/att_img_height.asp
height屬性只有像素和'%'屬性,因此無法使用'auto'。
pixels The height in pixels (like "100px" or just "100")
percent The height in percent of the containing element (like "20%")
我可以建議使用此免費的HTML驗證服務。 它不是完美的,但是它會在遵守標准以及不遵守標准方面讓您知道您的代碼中是否存在任何明顯的錯誤。 http://validator.w3.org/
如果您使用的是cmyk格式的jpeg而不是rgba,則可能會發生這種情況。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.