html 类型div,HTML <div>标签

div是块级元素,主要用作大的框架布局,比如将网页划分左中右结构。

也就是说网页的骨架主要通过div来架设的,而网页的血肉则是有span、p或者ul等元素完成。

代码实例如下:

```html

蒲公英云

body{background:#ffcc99;}

#header {

margin:0px auto;

width:1000px;

height:100px;

background:#FFFFCC;

}

#menu {

margin:5px auto;

width:1000px;

height:30px;

line-height:30px;

color:#99FF99;

font-weight:bold;

font-size:14px;

background:#6699FF;

}

#content {

margin:5px auto;

width:1000px;

height:400px;

background-color:#cccccc;

}

.content_left {

float:left;

width:200px;

height:400px;

background:#cc99ff;

}

.content_center {

float:left;

width:590px;

height:400px;

margin-left:5px;

background:#cc99ff;

}

.content_right {

float:left;

width:200px;

height:400px;

margin-left:5px;

background:#cc99cc

}

#footer1 {

margin:5px auto;

background-color:#5185E6;

color:#FFFFFF;

border-top:0px solid #F7F7F6;

height:30px;

line-height:30px;

width:1000px;

padding:5px 0;

text-align:center;

}

#footer2 {

margin:5px auto;

background-color:#3333FF;

color:#FFFFFF;

border-top:0px solid #F7F7F6;

height:30px;

line-height:30px;

width:1000px;

padding:5px 0;

text-align:center;

}

a{text-decoration:none;}

左侧栏
中间内容
右侧栏
滚动信息栏
底部

```

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值