我有一個div項的section1,section2,section3的問題,因爲我需要它們在一行中設置。第3節似乎低於其他兩個。你知道爲什麼這樣嗎?我需要所有人都在同一條線上。需要所有的div出現在同一行
div.bodySection
{
padding:5px;
background-color:lime;
margin-left:10px;
display:inline-block;
}
<div id="section">
<div id="section1" class="bodySection">
<h1><London></h1>
<p>London is the capital city of England.</p>
</div>
<div id="section2" class="bodySection">
<h2><London></h2>
<p1>London is the capital city of England.</p>
</div>
<div id="section3" class="bodySection">
<h3><London></h3>
<p1>London is the capital city of England.</p>
</div>
</div>
標籤''''和''不存在,你不能簡單地創建一個新的標籤。 –