word-wrap: break-word
在网格中不起作用。
对于表格table-layout: fixed
,网格的等价物是什么?
<div style="background: #e3e3e3; width: 75%;">
<div style="word-wrap: break-word;">
normaldivnormaldivnormaldivnormaldivnormaldivnormaldivnormaldivnormaldivnormaldivnormaldivnormaldiv
</div>
<table>
<tr><td style="word-wrap: break-word;">
badtablebadtablebadtablebadtablebadtablebadtablebadtablebadtablebadtablebadtablebadtablebadtablebadtable
</td></tr>
</table>
<table style="table-layout: fixed; width: 100%;">
<tr><td style="word-wrap: break-word;">
fixedtablefixedtablefixedtablefixedtablefixedtablefixedtablefixedtablefixedtablefixedtablefixedtablefixedtable
</td></tr>
</table>
<div style="display: grid;">
<div style="word-wrap: break-word;">
griddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddivgriddiv
</div>
</div>
</div>