0
我使用react-bootstrap-table
并需要垂直滚动。 我的代码:反应引导表宽度的问题
<BootstrapTable data={products} hover>
<TableHeaderColumn isKey dataField='id' width='10%'>
Product ID
</TableHeaderColumn>
<TableHeaderColumn dataField='name'>
Product Name
</TableHeaderColumn>
<TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn>
</BootstrapTable>
此代码工作正常,我也得到了自动调整大小宽度表。 之后,我加入的下键:
<BootstrapTable data={products} hover height='200px'>
与100% width
了问题,而不是调整表格的宽度我救一个滚动像下面的图片: