小编Bum*_* Yu的帖子

Next Js 13 中导航菜单的活动链接(下一步/导航)

如何定位 Next.js 中的活动链接 (next 13)

const Sidebar = () => {
  const link = [
    {
      label: ' Home',
      path: '/',
    },
    {
      label: ' About',
      path: '/about',
    }
  ]
  return (
    <div>
      {sidebarLink.map((link, index) =>
        <Link
          key={link.index}
          href={link.path}>
        </Link>
      )}
    </div>
  )
}

export default Sidebar
Run Code Online (Sandbox Code Playgroud)

我尝试了一切都无济于事

javascript reactjs next.js

12
推荐指数
2
解决办法
1万
查看次数

显示:Flex 项目超出最大宽度

我有三个项目(列)并display: flex设置margin-left为它们。当我调整窗口大小并向右滚动时,它们将超出框/窗口(溢出)。第二个问题-第三张图片的高度不同,即使我设置max-height了它。这只是代码的一部分(即使在这里问题也会再次出现):

body {
  margin: 0;
  width: 100%;
}

.background {
  position: relative;
  width: 100%;
  height: 1000px;
  background-color: gray;
}

.articleContainer {
  position: relative;
  display: flex;
  width: 100%;
  height: 600px;
}

.content {
  position: relative;
  display: flex;
  margin-left: 10%;
  border-top: 7px solid rgb(227, 0, 26);
  height: 600px;
  background-color: black;
  top: -4px;
  width: 333px;
}

.content img {
  top: 0;
  max-height: 230px;
  width: 333px;
}

.box {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 0; …
Run Code Online (Sandbox Code Playgroud)

html css overflow flexbox display

1
推荐指数
1
解决办法
362
查看次数

标签 统计

css ×1

display ×1

flexbox ×1

html ×1

javascript ×1

next.js ×1

overflow ×1

reactjs ×1