0
我有這樣的jsfiddle:導航保證金/填充
http://jsfiddle.net/JohnnyDevv/XQ5Xd/2/
我試圖讓HTML5的NAVs
零距離之間2PHP實例:
<nav>
<?php foreach($nav_list as $id => $nav_item): ?>
<?php echo anchor(strtolower($id), $nav_item, array('class' => ($nav == $nav_item ? 'active' : ''))) ?>
</li>
<?php endforeach ?>
</nav>
<img src="<?php echo site_url('_inc/img/divider.png') ?>" width="960" height="4" alt="Divisão de Menu">
<nav>
<?php foreach($subnav_list as $ids => $subnav_item): ?>
<?php echo anchor(strtolower($ids), $subnav_item, array('class' => ($subnav == $subnav_item ? 'active' : ''))) ?>
</li>
<?php endforeach ?>
</nav>
下面是一個例子我想要完成的圖像:
非常感謝你..工作就像一個魅力! – JonnyDevv