首頁  >  問答  >  主體

Tailwind CSS:精心設計導覽設計

我是 CSS 和 VueJs 新手,所以我正在建立選項卡面板設計 功能

目前,我正在使用 tailwind CSS 外掛程式

我想要的設計是這樣的:

目前:CodePen

我無法複製這個願望,因為我錯過了:

P粉515066518P粉515066518235 天前311

全部回覆(1)我來回復

  • P粉764785924

    P粉7647859242024-02-27 11:39:53

    你可以做的是直接在CSS中更改你的導航,使用:

    nav {
        width: max-content; /*This gonna set a fixed width, it is necessary*/
        display: flex;
        gap: 20px; /*increase as much you want to stay like your template, it is the space between the elements in your flex*/
        background: #ccc; /*Just put your color directly*/
        border-radius: 20px; /*Just put your radius*/;
    }

    回覆
    0
  • 取消回覆