在jsp頁面的Struts2應用程序中,我有一個可以讓用戶選擇他想要的選項的場景,我使用struts:checkboxlist像這樣如何更改<struts:checkboxlist>顯示項目的外觀>
<s:checkboxlist name="cust.communityList" label="Are You Inteterested In"
list="{'WebSpere Consultuing','Portal Consulting','SOA/BPM Consulting','Content Management',
'DataPower Consulting','Information Management Services','Application Monitoring','Application Security',
'Migration to WebSphere','Application Testing','WebSphere Version Upgrade','JAM/Panther Consulting','IBM Software Procurement','XMLink/Progressions','Other'}" />
它工作正常。但在瀏覽器中,它看起來並不好,它將一行一行的列表元素依次顯示,然後在下一行中。...
我想要顯示它們,第一行中有2個,下一個第二行中的2個項目等等......
如何以這種方式顯示覆選框列表項?