会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
limes
博客园
首页
新随笔
联系
管理
2021年2月19日
CSS-多行文本垂直居中
摘要: 在css中的单行文本垂直居中一般常见设置height和line-height相同即可。但是如果多行,文本就会溢出。 特意总结了多行文本垂直居中的办法 使用table-cell <style> .single{ height: 80px; border: 1px solid red; display:
阅读全文
posted @ 2021-02-19 14:27 limes
阅读(434)
评论(0)
推荐(0)
编辑
公告