I have a title that can have one or more lines.
How can I align the text vertically? If it was always one line I could just set the line-height to the container height.
I can do it using JavaScript, but I don't really like it, I'm searching for a pure CSS way.
Also if the container could expand with the lines it would be perfect, so I can always have the same padding on the top and bottom.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…