文字在表格中垂直居中用line-height:*px;
例如:
.middle a{color:#990000; height:25px; line-height:25px; text-decoration:none; background:url(./images/nav_main_bg.jpg) no-repeat left top; width:60px; display:block; font-size:12px;}
文字在表格中水平居中用text-align:center
在整个页面中居中用center标签
本文介绍了如何在表格中实现文字的垂直居中显示,通过设置`line-height`属性来调整元素高度与文本间距。同时,提供了一种简单的方法在页面中实现整体居中,通过使用`center`标签来达到目的。
9593

被折叠的 条评论
为什么被折叠?



