I want 1 line of text to be centered and 2 lines of text to be centered. How to write CSS
What does it mean. . Didn't understand. .
Center them all? I don’t understand
I don’t know what you mean. Directly set text-align:center to the parent element; all the content is correct.
I forgot to mention that it is vertically centered. There is also a question: how to make the picture vertical Center
Use js for vertical centering
http://www.17leba.com/archives/392
text-align:center; margin: 0 auto
Use position