【问题标题】:How do I center the ADAMS BLOG text to the center and have the other tabs to the left?如何将 ADAMS BLOG 文本居中,并将其他选项卡置于左侧?
【发布时间】:2022-02-14 20:26:25
【问题描述】:

如何将显示 adams blog 的主标题居中并将其他菜单项置于其右侧?

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: html css flexbox


【解决方案1】:

您可以使用 FlexBox。 在标题和其他菜单中为父元素提供以下 CSS 命令:

display: flex;
justify-content: space-between;

您也可以使用space-aroundspace-evenly 代替space-between

【讨论】:

  • 这个答案是不正确的,并且没有做问题中要求的事情。在问题中,要求徽标位于页面中心,而这个答案对此无济于事。
猜你喜欢
  • 2020-05-05
  • 2016-01-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-03-30
  • 2018-05-12
  • 1970-01-01
相关资源
最近更新 更多