我有以下標題div設置,但只有最左邊的div有內容時,標題的紅色背景不適用。這是爲什麼,因爲'標題'div有內容,其背景應該是紅色。標題/標題div的CSS背景顏色拼圖
頭的東西:
<title>Into the Breech</title>
<link href="Styles/Reset.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body { font-family: Arial, Sans-Serif, System; }
#title { background-color: #F71831; font-weight: bold; }
.title-segment-left { float: left; }
</style>
身體的東西:
<div id="title">
<div id="menu-title" class="title-segment-left" style="width: 200px;">
Menu
</div>
<div id="main-title" class="title-segment-left" style="width: auto;">
Home Page
</div>
<div id="right-title" style="float: right;">
Provantage Media Management System
</div>
</div>
0x100%,但是:+1。 – ANeves 2010-05-07 18:01:06
有了那簡單,深刻,迄今未解讀的解釋,我懷疑我會再次提出這個問題。 – ProfK 2010-05-07 18:16:48
很高興我能幫到你。快樂的編碼。 – kevingessner 2010-05-07 20:16:19