我的水平导航栏不会占用整个屏幕,我不知道如何让它做到这一点。 Here's what it looks like.此外,一旦它完成了,我希望图像位于导航栏上方,而不是上方。任何帮助,将不胜感激。水平导航栏将不会像页面
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
nav li {
list-style-type: none;
display: inline-block;
padding: 1em;
background-color: aqua;
float: right;
}
nav a {
text-decoration: none;
color: white;
background-color: black;
padding: 1em;
font-size: 1.2em;
}
img#sushi {}
nav ul {
}
<a href=""><img src="../_images/imgres.jpg" id="Sushi" width="50" height="50" alt="Sushi"></a>
<nav role="navigation">
<ul>
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">Contact Us</a></li>
</ul>
</nav>
</body>
什么都不做。 –