【发布时间】:2017-02-28 10:25:20
【问题描述】:
那么我怎样才能在<div> 中以固定宽度居中<Table>,当浏览器变小时,只需让滚动条出现并保持<Table> 的固定宽度?谢谢
这是我所拥有的:
<div>
<Table>
<TableBody style={{width: 1000}}>
<TableRow>
<TableRowColumn>Row 1</TableRowColumn>
<TableRowColumn>Content 1</TableRowColumn>
</TableRow>
<TableRow>
<TableRowColumn>Row 2</TableRowColumn>
<TableRowColumn>Content 2</TableRowColumn>
</TableRow>
</TableBody>
</Table>
<div/>
编辑
【问题讨论】:
标签: javascript html css reactjs material-ui