admin管理员组文章数量:1391974
I am using below react ponent
Is there a way to add a border to this ponent?
const Row = require("react-sticky-table").Row;
<Row style={{ border: 3, bordercolor: "black" }}>
is invalid as far as I tried.
I am using below react ponent https://www.npmjs./package/react-sticky-table
Is there a way to add a border to this ponent?
const Row = require("react-sticky-table").Row;
<Row style={{ border: 3, bordercolor: "black" }}>
is invalid as far as I tried.
Share Improve this question edited Dec 16, 2019 at 7:45 Sarvesh Mahajan 9247 silver badges18 bronze badges asked Dec 16, 2019 at 6:48 user2006734user2006734 3251 gold badge5 silver badges19 bronze badges 1- You can create a css file and write your style in it and then add that class to this ponent. – siddhartha kumar verma Commented Dec 16, 2019 at 7:23
2 Answers
Reset to default 3use borderColor not bordercolor, it should be in camel case and set the borderWidth as well
better method is
<Row style={{border: "3px solid rgb(0, 0, 0)"}}>
The style options you pass in should be in CamelCase, ie. borderColor. You should also probably pass in borderStyle: 'solid' into the style argument.
本文标签: javascriptIs there a way to add border on a table of react componentStack Overflow
版权声明:本文标题:javascript - Is there a way to add border on a table of react component? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744668895a2618703.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论