上面的链接页面对齐

发布于 2025-01-21 15:26:04 字数 135 浏览 3 评论 0原文

谁知道如何获得您的链接以坐在背景图像和页面内容的顶部,而不是页面旁边的内联。

示例:关于联系等的家。 在那之下:页面的其余部分。背景和页面内容。

目前,我的链接就在页面的左侧,旁边是背景和页面内容。

我该如何解决?

Does anyone know how to get your links to sit on top of your background image and page contents rather than inline next to your page.

Example: Home About Contact etc.
under that: The rest of the page. The background and the page contents.

Right now as it stands my links are in line to the left side of the page and right beside it is the background and page contents.

How do i fix that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深空失忆 2025-01-28 15:26:04

我认为您可以使用“ Display:Inline-Block”将Navbar中的链接保持在同一条线上,然后使用垂直对齐或“ valign:top”将链接对齐到页面顶部。

i assume you could use "display: inline-block" to keep the links in the navbar on the same line, and then use vertical-align or "valign:top" to align the links to the top of the page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文