我試圖通過使用CSS保證金屬性更改日曆組件的位置。Primefaces日曆位置
<p style="margin-top: 10px; margin-left: 100px">
<p:calendar value="#{calendarBean.date1}" mode="inline" id="inlineCal"/>
</p>
邊距工作, 但利潤率左不是。
如何在水平方向移動日曆組件?
我試圖通過使用CSS保證金屬性更改日曆組件的位置。Primefaces日曆位置
<p style="margin-top: 10px; margin-left: 100px">
<p:calendar value="#{calendarBean.date1}" mode="inline" id="inlineCal"/>
</p>
邊距工作, 但利潤率左不是。
如何在水平方向移動日曆組件?
How can I move calendar component in horizontal direction?
使用CSS的float
propery。即:float : left ;
您可以
,而不是利潤率左嘗試...
試試這個
<p style="margin-top: 10px; margin-left: 100px !important">
它可以幫助你
我不知道爲什麼,但保證金是正確的工作,所以我可以使用這個技巧: style =「margin-right:10px; float:right;」 – Vovan