鍍金池/ 問答/網(wǎng)絡安全  HTML/ react項目中rowSpan屬性無效怎么處理?

react項目中rowSpan屬性無效怎么處理?

<div>
                <table style = {tableStyle}>
                    <tbody>
                    <tr>
                        <td style={{whiteSpace:'nowrap', width: '1%', rowSpan: '3'}}>
                            <b>
                                <span style={{...fontStyle, color: '#0039b6'}}>S</span>
                                <span style={{...fontStyle, color: '#c41200'}}>o</span>
                                <span style={{...fontStyle, color: '#f3c518'}}>r</span>
                                <span style={{...fontStyle, color: '#c41200'}}>r</span>
                                <span style={{...fontStyle, color: '#0039b6'}}>y</span>
                            </b>
                        </td>
                        <td>  </td>
                    </tr>
                    </tbody>
                </table>
            </div>
回答
編輯回答
司令

rowSpan 不是 style 里面的,是元素的屬性

試試

<td style={{whiteSpace:'nowrap', width: '1%'}} rowSpan="3">
2018年7月29日 06:14