netsuite - 在 netsuite 高级 pdf 中添加背景图像
问题描述
我正在尝试更改在高级 pdf 模板打印上添加的背景图像的不透明度。背景图像被应用但我无法更改不透明度,因为我无法应用 css ...
body{
background-image:url("https://system.eu2.netsuite.com/core/media/media.nl?id=11&c=4667350&h=158ccc0fb10e81fb87dc");
}
解决方案
Could you please try this
BACKGROUND-MACRO attribute
Type: macro
Inherited: no
Used By: body, pbr and the #page CSS elements
Default: none
See: footer header rotate
The background-macro attribute specifies a macro to apply to each page first before the content is applied. More flexible than header and footer, the macro is effectively a DIV covering the whole page (including the header and footer), and can be used to add anything from watermarks to hole-punch guides.
This places a "Confidential" stamp on each page, rotated at 45% counter-clockwise
<head>
<macrolist>
<macro id="watermark">
<p rotate="-45" font-size="48pt">
Confidential
</p>
</macro>
</macrolist>
</head>
<body background-macro="watermark">
<p><!--Content--></p>
</body>
推荐阅读
- javascript - 试图在反应中导入一个img
- flutter - 动画列表不显示插入的项目颤动
- r - 如何通过配对列来对数据框进行子集化
- python - matplotlib - 为什么 blitting 冻结图
- reactjs - Api Platform & ReactJs & Symfony 4:路由问题
- sql - 如何计算另一个表的字符串中某个属性的出现次数
- javascript - 为什么 NodeJS 中来自 Angular 的 GET 请求有时为空,尽管有数据
- c++ - 模板类型别名可见性编译器不一致
- c++ - 如何防止 Visual Studio 2019 锁定 pdb 文件?
- reactjs - 为每篇博文创建唯一的路由 React