会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
西西cc
博客园
首页
新随笔
联系
订阅
管理
2021年6月22日
使用table,如何让<td>中的内容 水平居中同时垂直居中
摘要: 给标签设置text-align以及line-height属性 如果line-height不加important的话,就不会垂直居中,因为table自带的一些属性会影响我们设置的line-height <style> td, tr,th{ text-align: center; } td{ line-
阅读全文
posted @ 2021-06-22 18:05 西西cc
阅读(2397)
评论(0)
推荐(0)
编辑
公告