我遇到一個項目,一些奇怪的行爲我工作:Div時移當內容變得太大
當您單擊規則的整個佈局的變化鏈接到由左像素或三個。我已將此歸因於該div中的內容數量,因爲當您單擊具有較小內容高度的「分數」鏈接時。
較低的DIV結構如下所示:
<div id="lowercontent">
<div id="rulesDiv" >
<h1>Rules</h1>
<p>Clicking the roll button rolls the dice. You have 3 rolls per turn.
After rolling you can choose to keep dice through rolls. Click a die to keep it through a turn.
Submit a combination of dice by clicking an option and clicking Score Roll.
To claim yahtzee either click the zee button, or score roll without anything selected.
To claim yahtzee either click the zee button, or score roll without anything selected.
To claim yahtzee either click the zee button, or score roll without anything selected.
To claim yahtzee either click the zee button, or score roll without anything selected.</p>
</div>
<div id="scoresDiv">
<h1>Scores</h1>
<p>1</p>
</div>
<p id="closeTest"><span id="close">close</span></p>
</div>
我使用jQuery功能的分數和規則之間切換。 lowercontent是一個固定寬度的div。內部規則和分數div沒有寬度。
任何想法?讓我知道是否需要更多關於div的詳細css。
啊啊這很簡單!謝謝! – febs 2009-12-07 03:08:16
真是太棒了! – ysth 2009-12-07 03:09:31