¿如何在呈现为PDF的VF中将文本分成两列? #CSS无法正常工作

时间:2017-03-02 15:04:50

标签: salesforce visualforce apex

我的代码是这样的:

<apex:page renderAs="pdf" standardController="Account" extensions="CNT_Generar_InfoAbante" sidebar="false" showHeader="false" applyBodyTag="false" >

<head>
    <style type="text/css" media="print">
        #contenedorBody {
            column-count: 2;
            column-width: 100px;
            column-gap: 20px;
            text-align: justify;
            width: 100%;
            height: 1018px;
            max-width: 100%;
            max-height: 1018px;
        }

        .contenedorFooter {
            width: 100%;
            height: 48px;
            max-height 48px;
            /* background: rgb(255, 220, 206); */
        }
    </style>
</head>
<div id="contenedorBody">
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="contenedorFooter">
    <table>
        <tr>
            <td class="width70">&nbsp;</td>
            <td class="width30"><apex:image styleclass="imgFooter" width="145" height="46" value="{!$Resource.imgLogo}"/></td>
        </tr>
    </table>
</div>

但仍然显示这个 Image Pdf 1 而是喜欢这个Image Pdf 2

我只是试图将我的文本分成两列,但当我将我的页面呈现为PDF时,看起来CSS停止工作。有人能帮助我吗?谢谢!

0 个答案:

没有答案