javascript - How to change the font in the Table in ant design?
黄舟
黄舟 2017-06-28 09:26:04
0
1
1872

How to change the font in the Table in ant design?

The font of Table in ant design is too small. I want to make it larger. How can I change it?
My code is as follows:

<Table className='logListTable' 
     columns={columns} 
     dataSource={this.state.data} 
     pagination={{ pageSize: 50, size: 'default'}} 
     scroll={{ y: 560 }} 
     size='middle' 
     />

css in:

.logListTable {
  font-size: 20px; 
}

I changed the style in css like this, but it doesn't work. The font size is still the default size.
How to change the font? Thanks!

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
滿天的星座

Inspect the element, check the applied or inherited font size, and then modify it,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template