简体   繁体   English

Magento Static 块在 Inte.net Explorer 上的位置与 Chrome 上的不同,Firefox

[英]Magento Static Block is at a Different Place on Internet Explorer than on Chrome, Firefox

I created 3 static blocks ('vert_nav_link', 'social.network', and 'vert_goto_hapi') on a magento site and placed them on the left column (sidebar).我在 magento 站点上创建了 3 个 static 块(“vert_nav_link”、“social.network”和“vert_goto_hapi”),并将它们放在左栏(边栏)上。 On Chrome, Firefox and Safari, they are all shown on the left sidebar.在 Chrome 上,Firefox 和 Safari 都显示在左侧边栏中。 On IE 8, the last static block ends up at the main column.在 IE 8 上,最后一个 static 块最终出现在主列中。 Not sure why, since I used the same coding on all three.不知道为什么,因为我对所有三个都使用了相同的编码。 Here is the php code,这是 php 代码,

<div class="main-container col2-left-layout">
   <div class="main">
       <div class="col-main">
            <?php echo $this->getChildHtml('content') ?>
       </div>
       <div class="col-left sidebar">
            <?php echo $this->getChildHtml('breadcrumbs') ?>
            <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('vert_nav_link')->toHtml(); ?>
            <?php echo $this->getChildHtml('left') ?>
            <?php echo $this->getChildHtml('right') ?>
            <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('social_network')->toHtml(); ?>
            <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('vert_goto_hapi')->toHtml(); ?>     
       </div>
    </div>
</div>

Any insight will be helpful.任何见解都会有所帮助。

Thank you谢谢

Check those:检查那些:

*HTML for last block is valid. *最后一个区块的 HTML 有效。 Means there are no such things like:意味着没有这样的事情:

 <span</span>

*Change the left block height. *更改左侧块高度。 It might be simply css problem.它可能只是 css 问题。 So try to increase left block height and might be put float left on this block, but I am not sure, because I am not CSS guru.所以尝试增加左侧块的高度,可能会在这个块上向左浮动,但我不确定,因为我不是 CSS 大师。 Also display:inline-block or inline might solve your problem.另外 display:inline-block 或 inline 可能会解决您的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 chrome,firefox和Internet Explorer中的Ajax和html事件 - Ajax and html events in chrome, firefox and Internet Explorer jQuery可在Internet Explorer中使用,但不能在Chrome和Firefox中使用 - jQuery works in Internet Explorer but not in Chrome and Firefox 图像和进度栏未在Internet Explorer中加载,但在Firefox,Chrome等中加载 - Image & progress bar not loading in internet explorer, but loads in firefox, chrome etc 提交按钮未出现在Firefox中,但出现在Chrome和Internet Explorer上 - Submit button does not appear in Firefox but on Chrome and Internet Explorer 登录代码无法在Internet Explorer中使用,但可以在Chrome和Firefox中使用 - Sign-in code not working in Internet Explorer but yes in Chrome and Firefox 提交按钮不适用于Chrome或Firefox,但适用于Internet Explorer - The Submit Button doesn't work in Chrome or Firefox, but Works in Internet Explorer Magento“静态块”包装 - Magento “static block” wrapper PHP表单发布使Internet Explorer中出现Page Not Found 404错误,而Firefox和Chrome获得了预期的结果 - PHP form post gives Page Not Found 404 error in Internet Explorer while Firefox and Chrome give expected results 为什么会话不能在Internet Explorer和Google Chrome中正常启动,但是在Firefox中可以正常工作? - Why don't sessions start properly in Internet Explorer and Google Chrome, but work fine in Firefox? 有没有办法在新浏览器(Chrome / FireFox等)中打开Internet Explorer中的链接? - Is there a way to have a link in Internet Explorer that opens in a new browser (Chrome / FireFox / etc.)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM