为什么我的新Next.js应用中会出现行?

huangapple go评论51阅读模式
英文:

Why are rows appearing in my new Nextjs app?

问题

我刚刚开始使用Next.js做一个项目。我用常见的命令创建了它,即“npx create-next-app --ts”。一旦我移除了模板UI并在顶部添加了我的简单导航栏,我就得到了一个连续的行UI。我的代码里没有其他东西。

为什么我的新Next.js应用中会出现行?

这是需要担心的吗?

英文:

I am just starting a project using Nextjs. I created it with the common command "npx create-next-app --ts". Once I remove the template UI and add my simple navbar at the top, I am left with a consecutive row UI. I don't have anything else on my code
为什么我的新Next.js应用中会出现行?

Is this something to worry about?

答案1

得分: 5

从你的globals.css文件中删除这个代码块:

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}
英文:

Delete this block of Code from your globals.css

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}

huangapple
  • 本文由 发表于 2023年2月14日 00:21:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/75438569.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定