CSS
<style>
#layer1 {
height: 60px;
background-color:#00FF00;
}
#layer2 {
height: 60px;
background-color:#FFFFCC;
}
</style>
HTML
<div id="layer1">
This is the first div.
</div>
<div id="layer2">
This is the second div.
</div>
質問
この HTML の構造を変更せず、CSS コードのみを変更した場合、ある div から別の div にコンテンツを移動することは可能ですか? 「This is the first div.」というテキストを移動したい。layer2に、 「これは最初の div です」というテキストを作成します。layer2の左側に表示し、「This is the second div.」というテキストを作成します。layer2の右側に表示します。