javascript - Why can't the <p> tag be centered in these two methods in html?
ringa_lee
ringa_lee 2017-07-05 10:40:56
0
5
734

ringa_lee
ringa_lee

ringa_lee

reply all(5)
漂亮男人

To center text, use: text-align: center; Just add it to the P tag.

世界只因有你

Because <p></p> is a block-level element

小葫芦

I guess you have a conflict with the text-align above. The p above contains the p tag

黄舟

Just use text-align:center and put it after the font-size attribute

ringa_lee

To center the text, just add text-align:center on P. But if you want the P label to be centered, give p a fixed width margin: 0 auto;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template