1
我的CSS有問題 - 我有兩個div - 「section1」和「section2」。我希望它們並排顯示,但它們正如圖中所示顯示。有誰知道如何並排顯示它們?Div並排問題
<div id="section1">
<h1><London></h1>
<p>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants</p>
</div>
<div id="section2">
<h2><London></h2>
<p1>London is the capital city of England. It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants</p>
</div>
</div>
#section1
{
float:center;
padding:5px;
background-color:lime;
margin-left:20px;
width:300px;
}
#section2
{
float:right;
background-color:lime;
margin-left:10px;
width:300px;
}
你是對的 - 謝謝! –