css样式:
<style type="text/css">#login{
position:absolute;
top:50%;
left:50%;
margin-left:-标签一半宽度;
margin-top:-标签一半高度;
}</style>
html部分:
<div id="login">
</div >
css样式:
<style type="text/css">margin-left:-标签一半宽度;
margin-top:-标签一半高度;
}
html部分:
<div id="login">
</div >