我正在尝试做这样的事情:
内容输出通过react-jsx
{key % 4 == 0 ? (
<div className="grid">grid</div>
) : (
<div className="list">list</div>
)}
我得到这个布局:
<div class="grid">grid</div>
<div class="list">list</div>
<div class="list">list</div>
<div class="list">list</div>
<div class="grid">grid</div>
<div class="list">list</div>
<div class="list">list</div>
<div class="list">list</div>
<div class="grid">grid</div>
<div class="list">list</div>
<div class="list">list</div>
<div class="list">list</div>
<div class="grid">grid</div>
<div class="list">list</div>
<div class="list">list</div>
<div class="list">list</div>
任务是如何从屏幕截图中的这种布局中弥补css