我想将我的管理菜单 Horizontal 更改为 vertical 。我已经附上了相同的屏幕截图。
请建议我如何做到这一点。
谢谢! 截屏
在我的 opencart->admin->view->common->header.tpl
菜单是这样的
<div id="container">
<div id="header">
<div class="div1">
<div class="div2"><img src="view/image/logo.png" title="<?php echo $heading_title; ?>" onclick="location = '<?php echo $home; ?>'" /></div>
<?php if ($logged) { ?>
<div class="div3"><img src="view/image/lock.png" alt="" style="position: relative; top: 3px;" /> <?php echo $logged; ?></div>
<?php } ?>
</div>
<?php if ($logged) { ?>
<div id="menu">
<ul class="left" style="display: none;">
<li id="dashboard"><a href="<?php echo $home; ?>" class="top"><?php echo $text_dashboard; ?></a></li>
<li id="catalog"><a class="top"><?php echo $text_catalog; ?></a>
<ul>
<li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>
<li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>
<li><a class="parent"><?php echo $text_attribute; ?></a>
<ul>
<li><a href="<?php echo $attribute; ?>"><?php echo $text_attribute; ?></a></li>
<li><a href="<?php echo $attribute_group; ?>"><?php echo $text_attribute_group; ?></a></li>
</ul>
</li>
<li><a href="<?php echo $option; ?>"><?php echo $text_option; ?></a></li>
<li><a href="<?php echo $manufacturer; ?>"><?php echo $text_manufacturer; ?></a></li>
<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
<li><a href="<?php echo $review; ?>"><?php echo $text_review; ?></a></li>
<li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>
我希望这个菜单垂直显示而不是水平显示。
在样式表中,菜单是这样定义的
#menu {
background: url('../image/menu.png') repeat-x;
position: relative;
z-index: 1;
height: 34px;
clear: both;
padding: 0px 30px;
min-width: 900px;
}
#menu > ul.left {
float: left;
}
#menu > ul.right {
float: right;
}
#menu > ul {
position: relative;
margin: 0;
padding: 0;
}
#menu > ul ul {
list-style: none;
margin: 0;
padding: 0;
background: url('../image/transparent.png');
}
#menu > ul a {
display: block;
color: #FFFFFF;
text-decoration: none;
padding: 5px;
}
#menu > ul > li + li {
background: url('../image/split.png') center left no-repeat;
}
#menu > ul .top, #menu > ul li li.sfhover {
padding: 10px 15px 9px 17px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FFFFFF;
text-align: center;
}
#menu > ul ul li {
padding: 2px;
}
#menu > ul .selected .top {
background: url('../image/selected.png') repeat-x;
color: #FFFFFF;
}
#menu > ul .selected:hover a.top, #menu > ul .sfhover a.top {
}
#menu > ul .parent {
background: url('../image/arrow-right.png') 95% center no-repeat;
}
#menu > ul li {
float: left;
list-style: none;
}
#menu > ul li ul {
position: absolute;
}
#menu > ul li li {
clear: both;
}
#menu > ul li ul a {
color: #FFFFFF;
height: 15px;
width: 145px;
}
#menu > ul li ul ul {
margin: -27px 0 0 157px;
}
#menu > ul li li:hover, #menu > ul li li.sfhover {
background: #333;
color: #000000;
}
#container {
height: 100%;
}
在这里我不知道如何改变这一点。所以请建议我应该在哪里改变