Vue Element Ui中 Table 表格 数据居中样式设置
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element

·
只需要在对应的页面样式加上 下面的代码就可以实现 Table 表格数据居中的效果!
<style scoped>
/deep/.el-table th > .cell {
text-align: center;
}
/deep/.el-table .cell {
text-align: center;
}
</style>
/deep/的意思大概为深入的,深远的。可以修改element Ui 的Table 表格的样式!
就是那么简单!




A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:6 个月前 )
c345bb45
10 个月前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 10 个月前
更多推荐
所有评论(0)