Salesforce 如何在Visualforce中设置两个平行的页面块元素?
我想设置两个与Visualforce平行的pageblock元素。我该怎么做Salesforce 如何在Visualforce中设置两个平行的页面块元素?,salesforce,apex-code,visualforce,Salesforce,Apex Code,Visualforce,我想设置两个与Visualforce平行的pageblock元素。我该怎么做 <apex:page> <apex:pageblock title="titleA" id="blockA"> </apex:pageblock> <apex:pageblock title="titleB" id="blockB"> </apex:pageblock> </apex:page> 谢谢你我想说的确实是一个CSS问题,
<apex:page>
<apex:pageblock title="titleA" id="blockA">
</apex:pageblock>
<apex:pageblock title="titleB" id="blockB">
</apex:pageblock>
</apex:page>
谢谢你我想说的确实是一个CSS问题,关于相邻的浮动div,使用CSS进行页面布局等等。但是将它们包装成一个
)
在这种情况下应该是最简单的
<apex:page>
<apex:panelGrid columns="2">
<apex:pageblock title="titleA" id="blockA">
</apex:pageblock>
<apex:pageblock title="titleB" id="blockB">
</apex:pageblock>
</apex:panelGrid>
</apex:page>
谢谢。我想设置这两列的宽度(如左列70%和右列30%)。我该怎么做呢。