The content of element-ui table is not centered vertically

how to make the content of table not be centered vertically? you can set valign= "top" in html, then how to set it in element

The

table is centered vertically when it is stretched out, and the working hours are aligned with the one at 8 o"clock

.

clipboard.png

tdvertical-align:text-bottom;

clipboard.png
how to center the work schedule vertically

Feb.28,2021

class-name is useless, global .el-table td is useless, and adding important is useless. Finally, use: cell-style= "{'vertical-align':'top'}", personal test is valid. This question also bothered me for three hours.


Let's start with a link to the element-ui document: http://element-cn.eleme.io/2.

.

Table-related screenshots:

clipboard.png

< hr >

there is a classname of a column on the screenshot. You can use this to control the CSS style of a specific column. If you want to set all the settings, you can also get the corresponding tags to set them globally. The style can be overridden

.

if you select the underlying element chrome, you can catch his class name and overwrite the style of ElmentUI in the code

.
Menu