div底部对齐
来源:互联网 发布:java中md5 32 编辑:程序博客网 时间:2024/04/28 13:37
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档 </title>
</head>
<style>
.c1{
height:100px;
width:100px;
position:relative;
border:1px solid #0000FF;
}
.c2{
position:absolute;
bottom:0px;
height:20px;
width:50px;
background-color:#FF0000;
}
</style>
<body>
<div class="c1">
<div class="c2"> </div>
</div>
</body>
</html>
position:absolute;bottom:0px;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档 </title>
</head>
<style>
.c1{
height:100px;
width:100px;
position:relative;
border:1px solid #0000FF;
}
.c2{
position:absolute;
bottom:0px;
height:20px;
width:50px;
background-color:#FF0000;
}
</style>
<body>
<div class="c1">
<div class="c2"> </div>
</div>
</body>
</html>
position:absolute;bottom:0px;
- div底部对齐
- div内容底部对齐
- div 对齐父容器底部
- 关于div中图片无法底部对齐的问题
- css中怎么让div里面的文字底部对齐
- 通过使用绝对定位和相对定位,实现div底部对齐
- 基于标准,实现底部对齐
- DIV滚动条滚到底部
- 实现底部固定div
- html底部div固定在底部
- 让div居中对齐
- 让div居中对齐
- 让div居中对齐
- DIV居中对齐
- DIV 居中对齐
- div 右对齐
- div靠底边对齐
- bootstrap div 右对齐
- SSH集成要点
- LINUX启动过程详解[转载自http://roclinux.cn]
- 一个IT人的自白
- 新IT人
- 忍不住,终于在csdn上开博了!
- div底部对齐
- 网站开发的一些见解
- MyEclipse的安装(适用于7.0以前的版本!)
- PtInRect 失效的解决
- 在VMware下面装RHEL5.3
- c++中调用c接口的问题
- 上大数学系博士点考试书目
- sqlexplorer插件的安装(适用于MyEclipse7.0以前的版本)
- Apache derby数据库在MyEclipse7.1中启动失败的解决方案