2022-06-20 552
HTML <th> align 属性
实例
向左对齐表头单元格中的内容:
<table width="100%" border="1"> <tr> <th align="left">Month</th> <th align="left">Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table>
所有主流浏览器都支持 align 属性。
注意:几乎没有浏览器能够正确地处理 "char" 值。
定义和用法
HTML5 不支持 <th> align 属性。请使用 CSS 代替。
align 属性规定表头单元格中内容的水平对齐方式。
语法
<th align="left|right|center|justify|char">
属性值
值 | 描述 |
left | 标题在表格的左边。 |
right | 标题在表格的右边。 |
top | 标题在表格的上边。 |
bottom | 标题在表格的下边。 |
原文链接:https://77isp.com/post/1398.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态