Heim  >  Fragen und Antworten  >  Hauptteil

Tailwind CSS: Navigationsdesign erstellen

Ich bin neu in CSS und VueJs, also erstelle ich ein Tab-Panel-Design + Funktionalität

Derzeit verwende ich das Tailwind-CSS-Plugin

Das Design, das ich möchte, ist so:

Aktuell: CodePen

Ich kann diesen Wunsch nicht kopieren, weil ich Folgendes verpasst habe:

P粉515066518P粉515066518235 Tage vor313

Antworte allen(1)Ich werde antworten

  • 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*/;
    }

    Antwort
    0
  • StornierenAntwort