联系官方销售客服
1835022288
028-61286886
面包屑导航标签里能不能判断是不是最后一个时加上高亮active,虽然css或者js也能实现,就是想了解一下这个标签自己能实现吗
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">Home</li>
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Library</li>
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
就是无论在几级栏目或者内容页时,最后一个时加上自己的高亮class
<li class="breadcrumb-item"><a href="/">Home</a></li>
{dr_catpos($catid, '', true, '<li class="breadcrumb-item"><a href="[url]">[name]</a></li>')}
dr_catpos有办法循环判断吗?