如何翻译下面的代码使用三个div看起来一样?
<table width="1050px">
<tr>
<td rowspan="2" width="80%"></td>
<td width="20%"><p>some text</p></td>
</tr>
<tr>
<td><p>some text</p></td>
</tr>
<table>
Run Code Online (Sandbox Code Playgroud)
没有rowspan,但是你可以通过以下方式获得相同的结果:
<div style="width: 1050px;">
<div style="width: 80%; float: left;">
<p>some text</p>
</div>
<div style="width: 20%; float: left;">
<p>some text</p>
</div>
<div style="width: 100%; clear: left;">
<p>some text</p>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)