html 5新增技术,HTML5新增的几个容器模块

H5新增的几个容器块元素:

1、header:用户表示页面或某个区域的头部

2、nav:用于表示导航栏

3、aside:用于表示跟周围主题相关的附加信息

4、article:用于表示一个整体的一部分主题

5、section:表示右边的侧边栏

6、footer:用于表示页面或某个区域的脚注

Document

* {

margin: 0;

padding: 0;

}

.box {

width: 80%;

text-align: center;

font-size: 30px;

margin: 10px auto;

}

header {

width: 100%;

height: 100px;

outline: 1px solid red;

line-height: 100px;

}

.box1 {

width: 100%;

position: relative;

height: 550px;

}

nav {

width: 70%;

height: 50px;

outline: 1px solid black;

position: absolute;

left: 0px;

top: 0px;

line-height: 50px;

}

aside {

width: 30%;

height: 50px;

outline: 1px solid blue;

position: absolute;

right: 0px;

top: 0px;

line-height: 50px;

}

article {

width: 70%;

height: 500px;

outline: 1px pink solid;

position: absolute;

left: 0px;

top: 50px;

line-height: 500px;

}

section {

width: 30%;

height: 500px;

outline: 1px yellow solid;

position: absolute;

right: 0px;

top: 50px;

line-height: 500px;

}

footer {

width: 100%;

height: 100px;

outline: 1px solid rebeccapurple;

line-height: 100px;

}

我是网页的头部

我是左边的导航栏

我是右边的导航栏

我是主体内容

我是右边的侧边栏

我是底部

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值