The method of setting the table header and table content text in the table el-table in element ui

<el-table-column 
  prop="publishPlatform" 
  label="发布平台" 
  align="center" 
  header-align="center" 
  width="200">
</el-table-column>

summary:

1. There are two attributes align and header-aligh that control the center of the header and table data in element ui

2. Where aligh is the table alignment, the default is left, and header-align is the header alignment

3. Without setting the header-aligh header alignment, the table alignment will be used by default

 

Guess you like

Origin blog.csdn.net/a1059526327/article/details/108317998