我的水平導航欄不會佔用整個屏幕,我不知道如何讓它做到這一點。 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>
什麼都不做。 –