【发布时间】:2020-04-02 19:24:53
【问题描述】:
我想制作一张交替使用两种不同颜色的桌子。 我怎样才能让桌子上色?
const StickyTable = require("react-sticky-table").StickyTable;
const Row = require("react-sticky-table").Row;
const Cell = require("react-sticky-table").Cell;
export const BasicExample = () => {
return (
<React.Fragment>
<Paper>
<div style={{ width: "100%", height: "400px" }}>
<StickyTable>
<Row>
<Cell>Header 1</Cell>
<Cell>Header 2</Cell>
</Row>
<Row>
<Cell>Cell 1</Cell>
<Cell>Cell 2</Cell>
</Row>
</StickyTable>
</div>
</Paper>
</React.Fragment>
);
};
【问题讨论】:
标签: css reactjs typescript