NetSuite Advanced PDF页脚中心问题

发布于 2025-02-09 06:24:51 字数 574 浏览 2 评论 0原文

我正在定制NetSuite的表格,除了页脚外,还可以按照我想要的一切工作。由于某种原因,文本偏好:中心功能是根据页脚行中的字符数量而不是页面中心来工作。以下是我的代码和打印示例的图像,可以更好地显示错误。页脚代码图像1和2之间代码的唯一区别在于,我在第55行中删除了“数字”一词以描绘基于字符的中心。 页脚代码1

页脚打印1

footer code 2

a href =“ https://i.sstatic.net/wpayp.png” rel =“ nofollow noreferrer”>页脚打印2

I am customizing forms in NetSuite and have gotten everything to work as I would want, except the footer. For some reason the text-align: center function is working based on the number of characters in the row of the footer, rather than the center of the page. Below are images of my code and print examples that show the error better. The only difference in the code between footer code images 1 and 2 is that I removed the word "number" in row 55 to depict the centering is based on characters.
Footer Code 1

Footer Print 1

Footer Code 2

Footer Print 2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

触ぅ动初心 2025-02-16 06:24:51

如果您要在TD上展示边界,您会更好地了解正在发生的事情。基本上,您没有提供TD和表尺寸的提示,因此正在发生正常的表宽度处理。 IE。表只能宽足以容纳文本,因此它们似乎是基于文本大小的。

我还怀疑您的标记比您需要的要多得多。以下将为您提供我认为正在寻找的东西。请注意,您可能需要使用填充物来获得正确的左右对齐。

<macro id="nlfooter">
    <hr />
    <table class="footer" style="width: 100%;">
        <tr>
            <td align="left" colspan="4">email</td>
            <td align="center" colspan="6">Phone</td>
            <td align="right" colspan="4">Page info</td>
        </tr>
        <tr>
            <td align="center" colspan="14">
                <b>Thank you</b>
            </td>
        </tr>
    </table>
</macro>

If you were to show the borders on your tds you'd get a better sense of what's going on. Basically you are not providing hints for the td and table sizes so the normal table width processing is happening. ie. the tables will only be wide enough to hold the text so they appear to be text size based.

Also I suspect you have a lot more markup than you need. The following will give you what I think you are looking for. Note that you may want to play with padding to get the correct left and right alignments.

<macro id="nlfooter">
    <hr />
    <table class="footer" style="width: 100%;">
        <tr>
            <td align="left" colspan="4">email</td>
            <td align="center" colspan="6">Phone</td>
            <td align="right" colspan="4">Page info</td>
        </tr>
        <tr>
            <td align="center" colspan="14">
                <b>Thank you</b>
            </td>
        </tr>
    </table>
</macro>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文