[英]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.