css定位问题
* {
color: #fff;
font-family: sans-serif;
font-size: 32px;
text-align: center;
}
header,
nav,
section,
article,
footer,
aside {
padding: 2rem;
}
header {
background-color: #FFC300;
}
nav {
background-color: #FF5733;
}
section {
background-color: #C70039;
}
article {
background-color: #900C3F;
width: 80%;
margin: 10px auto;
}
aside {
background-color: #cd6155;
}
footer {
background-color: #581845;
}
<main>
<header>
cabecera
</header>
<nav>
navegación
</nav>
<section>
sección
<article>artículo</article>
<article>artículo</article>
</section>
<aside> más información</aside>
<footer>
Pie de página
</footer>
</main>
我希望它是以下方式,但我不能,如果有人帮助我,我将不胜感激
答案 0 :(得分:-3)
尝试用 <section>
、<table>
、<tr>
和 <th>
制作表格,而不是 <td>
之类的东西。
我使用了 W3Schools tutorial on HTML Tables。它应该可以帮助您理解这些标签。