分组选择符,如果在标题和段落里的文字加一个居中,就只有标题居中,怎么回事?
check
check 2016-12-19 13:38:05
0
2
1159
check
check

reply all(2)
数据分析师

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属性来更加直观地看出效果


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!