<BODY><TABLE height="100%">
<TR>
<TD>
<div>
aaaaaaaaaaaa
</div>
</TD>
</TR>
</TABLE>
</BODY>
解决方案 »
- 有没有人喜欢讨论一下将QQ数字等级输出为图片显示
- 关于XML错误,高手请进
- mysqli->query() 一个很奇怪的问题
- A域名页面调用B域名下的php,php里读写cookies为空,有办法解决吗?谢谢!
- PHPCoverage到底是啥?跟XML_Parser.php有什么关系?
- 文件上传的问题--在线等--散分
- 关于 分页 显示 数据库 表中记录的问题
- 求救 一个php注册时出现的问题?
- 问一个很蠢的问题,PHP有没有一个函数能够返回一个字符串在另一个中出现的次数。
- 如何用db取得表的字段名
- phpmyadmin 里遇到的问题:#1364 - Field 'ssl_cipher' doesn't have a default value
- php中截取含有html代码的字符串问题???
<style>
#center {
background: #090;
width: 100px;
height: 96px;
position: relative;
left: 50%;
margin-left: expression(-(this.offsetWidth/2)+"px");
margin-top:20%;}
</style>
<div id='center'>
</div>
酷得组件仓库 - 第三方软件开发组件下载\试用
www.cookcode.net
<style>
/**我是考虑到层的高度,设为百分之43*/
.myDiv{
position: fixed;
top: 43%;
left: 50%;
margin-left: -300px;
width:500px;
border: 1px solid #93a6aa;
background-color:#dfe6ed;
padding: 10px;
}
* html .myDiv{
position: absolute;
width:600px;
top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(43 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}
</style>
<div class="myDiv"> 这个居中了没有?</div>
CSS实现完美垂直居中
<style>
#center {
background: #090;
width: 100px;
height: 96px;
position: relative;
margin:20% auto auto;
}
</style>
</head><body>
<html>
<div id='center'>
fffffff
</div>
</body>
</html>
#div1 {
position: absolute;
width:100px;
height:50px;
left:50%;
top:50%;
margin-left:-50px;
margin-top:-25px;
border:1px solid #000
}
</style>
<body>
<div id="div1"></div>
</body>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
.dd { width:300px; height:30px; margin:0px auto; border:1px solid #000000 }
</style>
</head><body>
<div class="dd"></div>
</body>
</html>