text-align 指定了text在水平方向上的位置
A text can be
- left
- right
- center
- justify
justify : 每一行的宽度都是相同的,左边和右边的margins是笔直的。(像报纸和杂志)
each line is stretched so that every line has equal width, and the left and right margins are straight (like in magazines and newspapers)
vertival-align :指定一个元素垂直方向上的位置
- top:将元素的顶部与当前行对齐;
- middle
- bottom
- text-top:将元素的顶部与父元素的顶部对齐。
- baseline:与父元素的基线对齐
- text-bottom:将元素的顶部与父元素的底部对齐。
1531

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



