2014-02-20 65 views
1

如何在行中顯示下面提到的兩個組(以紅色圓圈標記)?對於同一如何在行中顯示按鈕和狀態欄項目

enter image description here

相關的代碼下面

 <header> 
       <button name="mymod_assigned" class="oe_highlight" type="workflow" string="Assigned" state="new" /> 
       <button name="mymod_negotiation" class="oe_highlight" type="workflow" string="In Negotiation" state="assigned" /> 
       <button name="mymod_won" class="oe_highlight" type="workflow" string="Won" state="negotiating"/> 
       <button name="mymod_lost" class="oe_highlight" type="workflow" string="Lost" state="negotiating"/> 
       <field name="state" widget="statusbar" 
         statusbar_visible="new,assigned,negotiation,won,lost" 
         statusbar_colors='{ 
             "new":"blue", 
             "assigned":"blue", 
             "negotiation":"blue", 
             "won":"red", 
             "lost":"red" 
             }' 
             /> 
     </header> 

回答

0

給出嘗試把按鈕的左側組中的一個DIV與float:left和右側組中的另一個DIV與float:right

+2

謝謝卡坎。只需在一個div下添加上面的代碼而不添加任何浮點數。 – user3153567

相關問題