如何制作apex:pageBlockTable大小为全屏大小

Rit*_*tta 0 salesforce visualforce apex-code

我正在构建一个visualforce页面我必须在pageblocksectionitem中创建一个visualforce页面,就像我在我的代码中显示的那样.我不太了解css.我的代码是

<apex:page standardController="Account">
<apex:pageBlock title="My Content">
<apex:pageBlockSection>
<apex:pageBlockSectionItem>
<apex:pageBlockTable value="{!account.Contacts}" var="item">
<apex:column value="{!item.name}"/>
</apex:pageBlockTable>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Run Code Online (Sandbox Code Playgroud)

它显示的表格宽度小于屏幕宽度的一半.我不太了解css但是当我设置样式:{width:250%}然后它的宽度增加我必须设置多少百分比所以它的宽度将等于apex:pageblocktable没有被apex包围:blockSection和apex:pageBlockSectionItem或任何备用指南

小智 7

添加到pageBlockSection columns ="1"

<apex:pageBlockSection columns="1">
Run Code Online (Sandbox Code Playgroud)