61,112
社区成员
发帖
与我相关
我的任务
分享
<head runat="server">
<title></title>
<style type="text/css">
body
{
height:100%;
background-color:#F9F8F8;
padding:0px;
}
#login
{
background-color:White;
height:300px;
margin-left:0px;
margin-right:0px;
margin-top:auto;
margin-bottom:auto;
}
</style>
</head>
<body>
<div id="login">
nihao
</div>
</body>
</html>
<head runat="server">
<title></title>
<style type="text/css">
body
{
height:100%;
background-color:#F9F8F8;
padding:0;
margin:0;
}
#login
{
background-color:White;
height:300px;
margin-left:0px;
margin-right:0px;
margin-top:auto;
margin-bottom:auto;
position:absolute;top:50%;margin-top:-150px;
width:100%;
padding:0;margin:0;
}
</style>
</head>
<body>
<div id="login">
nihao
</div>
</body>
</html>
<!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>
<title>111</title>
<style type="text/css">
*{margin:0px;padding:0px;}
body
{
height:100%;
background-color:red;
padding:0px;
}
#login
{
background-color:White;
height:300px;
position:absolute;top:50%;margin-top:-150px;/*margin-left:-8px;*/
width:100%;
}
</style>
<script type="text/javascript">
<!--
-->
</script>
</head>
<body>
<div id="login">
nihao
</div>
</body>
</html>
<!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>
<title>111</title>
<style type="text/css">
body
{
height:100%;
background-color:red;
padding:0px;
}
#login
{
background-color:White;
height:300px;
width:100%;
position:absolute;top:50%;margin-top:-150px;margin-left:-8px;
width:100%;
}
</style>
<script type="text/javascript">
<!--
-->
</script>
</head>
<body>
<div id="login">
nihao
</div>
</body>
</html>
<head runat="server">
<title></title>
<style type="text/css">
body
{
height:100%;
background-color:#F9F8F8;
padding:0px;
}
#login
{
background-color:White;
height:300px;
margin-left:0px;
margin-right:0px;
margin-top:auto;
margin-bottom:auto;
position:absolute;top:50%;margin-top:-150px;
width:100%;
}
</style>
</head>
<body>
<div id="login">
nihao
</div>
</body>
</html>