网页 怎样让一个表格永远处于中心位置?
来源:百度知道 编辑:UC知道 时间:2024/07/07 04:06:58
让一个表格永远处于中心位置,怎么弄?
不仅仅是横向居中,纵向也是居中的,就是整个表格在屏幕的中心位置,不高不低。
不仅仅是横向居中,纵向也是居中的,就是整个表格在屏幕的中心位置,不高不低。
<table align="center"> 是表格内东西居中
<center>
<table></table>
</center>
<table align="center">
设置表格的左右对齐方式:
margin-left:auto;
margin-right:auto;
表格宽度设为百分比 居中显示
<table align="center">