11智能在线
新记
html代码中表格居中且向下靠
如题所述
举报该文章
相关建议 2016-11-08
html中让表格在浏览器中左右居中,可以设置表格的align属性
align有三个属性:
1、居中:center;
2、靠左:left;
3、靠右:right。
html中是没办法实现上下居中的,如果设置上下居中,需要通过js程序来设置。
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/42vpf8sqf8777fvp7s.html
其他看法
第1个回答 2016-11-08
使用align=”center“即可实现表格的居中。代码实例如下:
<html>
<meta charset="utf-8">
<body>
<table align="center" border="1">
<tr>
<td>表格内容</td>
</tr>
</table>
</body>
</html>
本回答被提问者和网友采纳
相似回答
大家正在搜
相关问题
html中表格内容如何靠左且置顶
html中如何让表格在浏览器中上下左右居中?
html中,怎么让表格中的文字居中偏上
html中怎么样将表格居中显示
HTML中如何将表格居中排列
html表格居中代码
请问html里面如何让表格居中
怎样把html代码里的单元格居中