加div的作用
时间:2011-12-16
来源:互联网
在CSS中有:
#site-info
{
background-color:#e4e4e4;
background-image:url(../img/footer_t.gif);
background-repeat:no-repeat;
background-position:left center;
font-size:12px;
margin-top:5px;
}
#site-info div
{
background-color:#e4e4e4;
background-image:url(../img/footer_b.gif);
background-repeat:no-repeat;
background-position:left bottom;
padding:0 10px 5px 10px;
overflow:hidden;
}
在相应的HTML中有:
<div id="site-info">
<div>
。。。
。。。
</div>
</div>
请问为什么要在<div id="site-info">下加一个<div>啊,这个div起什么作用呢
#site-info
{
background-color:#e4e4e4;
background-image:url(../img/footer_t.gif);
background-repeat:no-repeat;
background-position:left center;
font-size:12px;
margin-top:5px;
}
#site-info div
{
background-color:#e4e4e4;
background-image:url(../img/footer_b.gif);
background-repeat:no-repeat;
background-position:left bottom;
padding:0 10px 5px 10px;
overflow:hidden;
}
在相应的HTML中有:
<div id="site-info">
<div>
。。。
。。。
</div>
</div>
请问为什么要在<div id="site-info">下加一个<div>啊,这个div起什么作用呢
作者: zhrybd2 发布时间: 2011-12-16
background-image:url(../img/footer_b.gif);
background-repeat:no-repeat;
background-position:left bottom;
在页面最底部加图片~·
background-repeat:no-repeat;
background-position:left bottom;
在页面最底部加图片~·
作者: MuBeiBei 发布时间: 2011-12-16
为了布局。。。各取所需。。。
作者: zsx841021 发布时间: 2011-12-16
这个……不知道怎么回答,能否给个链接地址什么的看看页面效果。
作者: missgd152 发布时间: 2011-12-16
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28