不知道是不是那个意思?
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title></title>
<style type="text/css">
#header{height:20px;width:100%;background-color:#DDDDDD;}
#footer{height:20px;width:100%;background-color:#AAAAAA;}
#content{background-color:red;width:300px;height:30%;position:relative;}
div#txt-align
{
background:yellow;
position:absolute;
bottom:0;
color:black;
width:inherit;
text-align:center;
}
</style>
<script language="javascript">
</script>
</head>
<body>
<div id="header">
Header
</div>
<div id="content">
<div id="txt-align">text at the bottom and the center</div>
</div>
<div id="footer">Footer</div>
</body>
</html>
【 在 ex2 (d2) 的大作中提到: 】
: 就是让一行文字在容器最下方[或者指定距离容器底部多少px]
: 并且文字在横向上要居中
: 弄了很久, 都不能实现, 两者好像有点排斥[应该是我撮...]
: ...................
--
FROM 208.91.115.*