如何将我的内容放在我的导航下?每当我在里面放一些文字时,它就会落在绿色的背景之后,并被导航覆盖。请请帮助我如何把我的文字导航 固定导航下的HTML内容
<html>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 10px;
overflow: hidden;
background-color: #1E9600;
\t position: fixed;
top: 0;
width: 100%;
\t height:75px;
}
li {
float: left;
\t height:75px;
\t border-right: 5px solid red;
}
li:last-child {
border-right: none;
}
li a {
display: block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: yellow;
}
.active {
background-color: #4CAF50;
}
</style>e>
</style>
<head>
<title> E-Benta </title>
<ul>
<li><a href="Home.html"> <img src="logo.png"> </img> </a>
<li><a href ="Home.html">Home </a></li>
<li><a href ="Products.html">Products </a>
<li><a href ="about.html">About us </a>
<li><a href ="contact.html">Contact us </a>
</ul>
</head>
<spacer>testing </spacer>
</body>
</html>
感谢兄弟,无论如何,你应该考虑我应该把我的主页上的内容? – theodore
对不起,我无法就您网页上的内容提供建议,但我希望我的回答能帮助您解决您的问题=) –
它的工作原理,感谢您的帮助! – theodore