首页  >  问答  >  正文

Tailwind CSS:精心设计导航设计

我是 CSS 和 VueJs 新手,所以我正在创建选项卡面板设计 + 功能

目前,我正在使用 tailwind CSS 插件

我想要的设计是这样的:

当前:CodePen

我无法复制这个愿望,因为我错过了:

P粉515066518P粉515066518235 天前312

全部回复(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
  • 取消回复