0

我想在导航栏中正确对齐我的产品和支持链接。您如何整体对齐项目导航栏中的链接?

这就是现在的样子

这是代码。

<md-whiteframe class = "main-toolbar  ">

  <md-theme name = "teal">

      <md-toolbar  class = "">

     <router-link class = "nav-link " :to = " { name: 'levi' }" style = "color:white; text-decoration: none; ">levi</router-link>

          <router-link id = "nav"class = "nav-link" :to = "{ name: 'Product' }" style = "color:white; text-decoration: none;">
        Product
    </router-link> 

     <router-link id = "nav" class = "nav-link" :to = "{ name: 'Support' }" style = "color:white; text-decoration: none;">
        Support
    </router-link>


      </md-toolbar>

  </md-theme>

   </md-whiteframe>
4

1 回答 1

3

添加flex:1levi链接的样式。

<md-toolbar  class = "">
  <router-link class = "nav-link " :to = " { name: 'levi' }" style = "color:white; text-decoration: none; flex: 1">levi</router-link>
  <router-link id = "nav"class = "nav-link" :to = "{ name: 'Product' }" style = "color:white; text-decoration: none;">
    Product
  </router-link> 
  <router-link id = "nav" class = "nav-link" :to = "{ name: 'Support' }" style = "color:white; text-decoration: none;">
    Support
  </router-link>
</md-toolbar>

更新了小提琴

于 2017-07-27T02:53:45.603 回答