vertical-align的默認(rèn)值是baseline
- baseline:將支持valign特性的對(duì)象的內(nèi)容與基線對(duì)齊
sub:垂直對(duì)齊文本的下標(biāo)
super:垂直對(duì)齊文本的上標(biāo)
top:將支持valign特性的對(duì)象的內(nèi)容與對(duì)象頂端對(duì)齊
text-top:將支持valign特性的對(duì)象的文本與對(duì)象頂端對(duì)齊
middle:將支持valign特性的對(duì)象的內(nèi)容與對(duì)象中部對(duì)齊
bottom:將支持valign特性的對(duì)象的文本與對(duì)象底端對(duì)齊
text-bottom:將支持valign特性的對(duì)象的文本與對(duì)象底端對(duì)齊
給div 設(shè)置 行高line-height屬性
line-height值改得和DIV或者SPAN的height相同!