文字,table 水平居中:

  将父标签CSS设为

  text-align:center;

div水平居中:
  父级: {TEXT-ALIGN: center;}
  自身: { MARGIN-RIGHT: auto; MARGIN-LEFT: auto; }

图片居中:

<HTML>
<HEAD>
<TITLE>   New   Document   </TITLE>
<style>
.div1{
position:absolute;  
top:   expression(document.body.scrollTop   +   document.body.clientHeight   /   2);  
left:   expression(document.body.clientWidth   /   2)
}
</style>
</HEAD>

<BODY>
<div   class= "div1 ">

</div>
</BODY>
</HTML>


相关文章:

  • 2021-08-31
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-12-11
猜你喜欢
  • 2021-12-05
  • 2022-01-09
  • 2021-11-15
  • 2021-05-20
相关资源
相似解决方案