Group selector, if you add a center to the text in the title and paragraph, only the title will be centered. What's going on? -PHP Chinese website Q&A-Group selector, if you add a center to the text in the title and paragraph, only the title will be centered. What's going on? -PHP Chinese website Q&A
Group selector, if you add a center to the text in the title and paragraph, only the title will be centered. What's going on? -PHP Chinese website Q&A-Group selector, if you add a center to the text in the title and paragraph, only the title will be centered. What's going on? -PHP Chinese website Q&A
Please watch and learn.
用分组选择符设置标题和段落都居中,实际效果也是都居中的。
只是因为字数的多少,导致页面看起来是标题居中,而段落不居中。其实段落也是居中的,两端对齐效果。
如果想使显示效果更明显,可以为段落设置width属性来更加直观地看出效果