我想将topsearch div移动到内容div我不知道如何移动它甚至我在主页文件中更改了`
<div class="shopdeal"></div>
<?php if(Mage::getSingleton('cms/page')->getIdentifier() == 'home' && Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms') : ?>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('top-seller')->toHtml() ?>
<?php else:?>
<?php echo $this->getChildHtml('left') ?>
<?php endif; ?>
</div>
<div class="main-inner-wraper">
<div class="header_search_div">
<div class="search_left">
</div>
<div class="search_content">
<?php echo $this->getChildHtml('topSearch') ?>
</div>
<div class="search_right">
</div>
</div>
<?php //echo $this->getChildHtml('breadcrumbs') ?>
<div class="col-main col-full">
<?php echo $this->getChildHtml('topMenu'); ?>
<?php echo $this->getChildHtml('global_messages') ?>
<?php echo $this->getChildHtml('content') ?>
</div><!--main col- end-->
</div><!--main-inner-wraper end-->`
我在page.xml中也做了更改,但仍未成功,有人建议我如何执行此操作please refer image
答案 0 :(得分:0)
我认为你可以通过仅使用css来实现这一点。我正在使用RWD主题,只是改变了类的右侧和顶级值,如
#header-search {
display: block;
position: absolute;
top: 45px;
width: 35%;
height: 50px;
padding: 0px;
right: 60%;
}
给了填充菜单,它起作用了。