1 Star 0 Fork 0

math.most/html-css

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
001语义化标签的使用.html 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
math.most 提交于 2021-09-27 19:40 +08:00 . first commit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>语义化标签的使用</title>
<style>
header {
width: 100%;
height: 100px;
background-color: red;
}
nav {
width: 100%;
height: 30px;
background-color: blue;
}
main {
width: 100%;
height: 500px;
background-color: #ccc;
flex-direction: row;
display: flex;
}
main > article {
width: 70%;
height: 100%;
background-color: purple;
/* float: left; */
}
main > aside {
width: 30%;
height: 100%;
background-color: pink;
/* float: right; */
}
footer {
width: 100%;
height: 30px;
background-color: yellow;
}
</style>
</head>
<body>
<header>头部</header>
<nav>导航</nav>
<main>
<article>左侧</article>
<aside>右侧</aside>
</main>
<footer>底部</footer>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mathmost/html-css.git
git@gitee.com:mathmost/html-css.git
mathmost
html-css
html-css
master

搜索帮助