我的收藏

This commit is contained in:
zhaofang
2022-06-09 19:34:48 +08:00
parent d9e1d306d7
commit e860ceb1b6
2 changed files with 6 additions and 2 deletions

View File

@@ -237,9 +237,10 @@ export default {
this.loadMore();
}
}
// console.log(pdfPreview.getBoundingClientRect().top,'pdfPreview.getBoundingClientRect().top');
if(pdfPreview.getBoundingClientRect().top < 0) {
document.querySelector('#pdfTopBox').style.cssText = `position: fixed;bottom:0;width:${contentDiv-9}px`;
} else {
document.querySelector('#pdfTopBox').style.cssText = "position:static";
}
if(pdfTopBox.getBoundingClientRect().top < 1000) {
document.querySelector('#pdfTopBox').style.cssText = "position:static";
@@ -351,7 +352,6 @@ export default {
margin-top: 10px;
font-size: 15px;
color: #454545;
line-height: 24px;
word-break:break-all;
}
::v-deep .el-card__body{