gpt4 book ai didi

html - 如何在导航栏上放置 Logo

转载 作者:行者123 更新时间:2023-11-28 18:08:37 24 4
gpt4 key购买 nike

我的导航栏上有 6 个链接,并设法将 Logo (jpeg)附加到栏中,但我的链接位于 Logo 的顶部。我如何将我的链接分开,以便我的 Logo 独立。

HTML

    <html>
<head>
<title>TITLE HERE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css">
</head>

<body>
<a name="top"></a>
<table align="center" cellpadding="0" cellspacing="0" border="0" height="100%">
<tr><new class="right" colspan="2">&nbsp;</td></tr>
<tr>

<!--Top Navigation Links (top horizontal navigation bar)-->
<td id="nav1" colspan="2"><a href="index.html">Home</a>
<a href="LINK1.html" class="nav1">Name</a>
<a href="LINK2.html">Name</a>
<a href="LINK3.html" class="nav1">Name</a>
<a href="LINK4.html">Name</a>
<a href="LINK5.html" class="nav1">Name</a>
</tr>
<tr><td id="head" colspan="2"></td></tr>
</td>
</tr>
<td id="main" valign="right">

和 CSS

td#nav1 {
height: 66px;
background: #000000 url('images/logo.jpg') no-repeat top left;
}

最佳答案

td#nav1 的左侧添加一些等于或大于 Logo 宽度的填充。

关于html - 如何在导航栏上放置 Logo ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19149358/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com