並預先感謝您閱讀本文。 我正在創建一個查詢結果顯示在div內的頁面。一個典型的div,左邊是圖片,右邊是產品及其特徵的描述。所以我的PHP腳本找到了結果的數量,並通過一個for循環,我將結果顯示在另一個下面。我希望在每行上顯示兩個結果(div)。 所以,如果我們所說的<##結果>結果數量,模板對於現在的HTML代碼看起來像這樣...div定位問題
<#FOR results#>
<div id="description"></div>
<#/FOR results#>
CSS樣式的描述DIV的是..
#description {
position:relative;
// I noticed that display:table-cells; actually puts the divs one next the other but they occupy the whole screen
//Other properties related to font styling and etc }
如果任何人有anyidea誰可以通過使用CSS或jQuery或通過PHP來完成,我將不勝感激!
非常感謝你這工作就好了 – user926652 2012-02-19 09:48:53