我正在尝试制作边框并更改“111”结果的颜色/字体(查看图片)。 http://imgur.com/a/2HaL0
问题是类别是从连接mysql数据库的foreach显示的:
<?php $class = (isset($category) || isset($manufacturer)) ? ' categories_hide' : ''; ?>
<div class="hidden-xs block categories <?php echo $class; ?>">
<h2><a id="menu_all_categories" href="#">Category</a></h2>
<div class="block-content">
<ul id="menu">
<?php foreach ($categories as $_category):?>
<li><?php echo link_to($_category['title'].'<span> ('.$_category['num_products'].')</span>', '@category?category_alias='. $_category['slug'].'-c'.$_category['id'], array('title' => $_category['title']));?></li>
<?php endforeach;?>
</ul>
</div>
</div>
关于如何做到这一点的任何想法?