router-link-active寫導航欄

1.先看看要實現的效果css 2.下面直接代碼啦 1>html代碼html <ul class="header-nav"> <router-link tag="li" to="/" exact><a>首頁</a></router-link> <router-link tag="li" to="/chanpin"><a>咱們的產品</a></router-link>
相關文章
相關標籤/搜索