-1
<div id="content" style="background-color: red; height: 100%;">
<div id="object1" style="width: 100%; background-color: green; height: 100px; position:fixed;">
</div>
<div id="object2" style="width: 100%; background-color: blue;height: 100px;" >
</div></div>
我想修復div object1的位置固定,object2應該與其分開。沒有固定的位置,一切工作正常。如何在不使用css的margin和padding屬性的情況下實現這一點。如何在父div中分隔子div,當其中一個div被修復時。