Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php wp电子商务中的单一产品图像在IE中消失(在其他浏览器中表现良好)_Php_Html_Internet Explorer - Fatal编程技术网

Php wp电子商务中的单一产品图像在IE中消失(在其他浏览器中表现良好)

Php wp电子商务中的单一产品图像在IE中消失(在其他浏览器中表现良好),php,html,internet-explorer,Php,Html,Internet Explorer,我有一个wp电子商务驱动的wordpress网站,它是为客户建立的 仅Internet Explorer浏览器存在问题。单个产品单独页面中的单个产品图像将消失,并且无法显示该图像,即使源代码中仍然存在明显的img代码 以下是wpsc-single_product.php文件中图像占位符的代码: <div class="image" style="display: table; width:360; margin: auto;height: 430px; position: relative

我有一个wp电子商务驱动的wordpress网站,它是为客户建立的

仅Internet Explorer浏览器存在问题。单个产品单独页面中的单个产品图像将消失,并且无法显示该图像,即使源代码中仍然存在明显的img代码

以下是wpsc-single_product.php文件中图像占位符的代码:

<div class="image" style="display: table; width:360; margin: auto;height: 430px; position: relative; overflow: hidden; ">

<a href="<?php echo wpsc_the_product_permalink(); ?>">
      <img style="height: auto; max-height:100%; max-width:100%; margin: 0px auto; overflow:hidden;" class="product_image" id="product_image_<?php echo wpsc_the_product_id(); ?>" alt="<?php echo wpsc_the_product_title(); ?>" title="<?php echo wpsc_the_product_title(); ?>" src="<?php echo wpsc_the_product_thumbnail(get_option('product_image_width'),get_option('product_image_height'),'','single'); ?>"/>
</a>

</div>

我将不胜感激,如果有人能帮助我们解决这个问题,以显示在单一的产品页面准确的图像


谢谢。

你能在页面呈现后从IE发布源代码吗?Alex Straffin,实际上我上面发布的代码是页面呈现后的图像代码。它看起来像是最大宽度:100%可能是罪魁祸首,但我不知道如何正确修复它,以确保在IE中显示。如果该代码是在页面处理后从浏览器中获得的,那么您的PHP没有得到正确处理。PHP永远不应该显示在浏览器上,如果这是后期IE渲染,这可能是您的问题。嗨,Alex,谢谢。但是我已经修复了设置为“最大宽度”以继承和显示包含表的容器的问题