こんにちは私は別のものに1つのテーブルの行を入れようとしていましたが、セクションをラッパーとして作成し、セクション内にdivを2つ入れました。絶対にテーブルの行が列になると私はどのように行として保持し、一番上に一番下の行を置くかわからない絶対配置されたテーブルを整理する
これは私が別の無駄なトリックと私だけの多くを試して得たものです困惑:O
section {
display: table;
display: block;
width: 100%;
border-spacing: 0.5em;
vertical-align: middle;
text-align: center;
}
figure {
display: inline-block;
display: table-row;
max-width: 25%;
}
div.top {
text-align: center;
display: inline-block;
background-color: grey;
width: 200px;
height: 200px;
border: 10px solid rgba(0, 0, 0, 0.1);
}
div.bottom {
text-align: center;
display: inline-block;
background-color: grey;
width: 200px;
height: 200px;
border: 10px solid rgba(0, 0, 0, 0.1);
}
<section style="position: relative;">
<figure style="position: absolute;">
<div class="top">H</div>
<div class="top">G</div>
</figure>
<figure style="position: absolute;">
<div class="bottom">A</div>
<div class="bottom">B</div>
</figure>
</section>
なぜこのようにポジションを設定しているのですか?あなたは絶対にそれらを設定することで達成しようとしているものは何ですか? – Ethilium
すべてのウェブサイト私はdivsを重複して交差しました。すべての話は相対的な1つのdivとz-indexの追加を含む絶対的なものとして設定されていました。私はcoudlntが何かを見つけたのでちょうど転んだ – Decapitar