寻找一个合适的margin-top数值,使用如下代码满足需求:
pdfui.addUIEventListener(UIExtension.UIEvents.initializationCompleted,
function
() {
var
obj = document.getElementsByClassName(
"fv__pdf-viewer-layout"
);
obj[0].setAttribute(
'style'
,
'margin-top:-200px'
)
})