javascript - I use antdesign's table control in react. How can I force my own style to override a certain attribute of the calling class?
PHP中文网
PHP中文网 2017-05-24 11:39:01
0
3
837

ble comes with .ant-table Class by default, one of which is overflow: auto; when debugging, I found that as long as this is unchecked, the above interface will be perfect. Display, but I haven’t manually written the className in the front desk now. I want to remove the overflow: auto; attribute. What should I do?

PHP中文网
PHP中文网

认证0级讲师

reply all(3)
巴扎黑

Rewrite a css and overwrite the overflow attribute of ant-table.

伊谢尔伦

Rewrite a css and require it to come in

迷茫

If you are using webpack, if you use css modules and classnames, you can write a global style, as long as the priority is higher than ant.
For example
ant-input{ color:#000 }
Then you can write
.myname ant-input{ color:'#ccc'}; and this style is written in the position of your index.css, and myname is all How to write style

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