CSS 日常练习----字体图标文件基线对齐问题 发表于 2018-08-11 | 分类于 技术 , Blog记录日常 CSS 练习的小知识点 —— 字体图标文件基线对齐问题字体图标文件基线对齐问题点击预览1234567891011121314151617181920212223242526272829303132333435<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>字体图标文字基线对齐问题</title> <link rel="stylesheet" type="text/css" href="css/font-awesome.css"> <style> *{ padding: 0; margin: 0; } div{ font-size: 50px; background: yellow; line-height: 150px; } div span { /*display: inline-block;*/ background: red; } div em{ vertical-align: top; background: bisque; display: inline-block; line-height: 80px; font-size: 20px; } </style></head><body><div> <span>xxxpppp</span><i class="icon-refresh"></i><em>wok</em></div></body></html>本文作者: bobo本文链接: https://www.anynote.me/1966198034.html版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!