Commit a2b45967 by 王东红

网站导航条优化

parent 14a97364
......@@ -216,6 +216,15 @@ class Topmenu extends Template implements IdentityInterface
$html .= '<ul class="subchildmenu col-sm-8 mega-columns columns4">';
$html .= $this->_getHtmlStyle2($child, $childrenWrapClass, $limit, $colStops);
$html .= '</ul>';
$html .= '<div class="menu-right-block col-sm-4">';
$html .= $this->getLayout()
->createBlock(\Magento\Cms\Block\Block::class)
->setBlockId('catpic') //replace my_cmsblock_identifier with real CMS bock identifier
->toHtml();
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
} else {
......
......@@ -956,6 +956,9 @@ footer{
border-right: 1px solid #e1e1e1;
padding: 0 20px;
}
.navigation .subchildmenu.col-sm-8.mega-columns.columns4 li.level1:last-child{
border: none;
}
.navigation .subchildmenu.mega-columns.columns4 > li{
width: 25%;
}
......@@ -965,6 +968,9 @@ footer{
.navigation .subchildmenu.mega-columns.columns4 > li:nth-child(4n+1){
clear: both;
}
.navigation .menu-right-block.col-sm-4{
float: right;
}
.navigation ul li.level0{
padding: 0 10px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment