pdfjs库使用2

.pdf-viewer {

display: flex;

flex-direction: column;

align-items: center;

width: 100%;

height: 100%;

}

.pdf-controls {

display: flex;

gap: 1rem;

margin: 1rem 0;

align-items: center;

}

.pdf-container {

width: 100%;

overflow: auto;

-webkit-overflow-scrolling: touch;

}

.canvas-container {

position: relative;

margin: 0 auto;

}

.pdf-canvas {

display: block;

margin: 0 auto;

}

.link-layer {

position: absolute;

top: 0;

left: 0;

right: 0;

bottom: 0;

}

.link-layer a {

position: absolute;

background: transparent;

pointer-events: auto; /* 使链接可点击 */

}

/* 可选:添加链接悬停效果 */

.link-layer a:hover {

background: rgba(0, 0, 255, 0.1);

outline: 1px solid rgba(0, 0, 255, 0.2);

}

相关推荐
菜泡泡@1 天前
仓库地图vue-grid-layout
前端·javascript·vue.js
u***u6851 天前
React环境
前端·react.js·前端框架
X***E4631 天前
前端数据分析应用
前端·数据挖掘·数据分析
4***14901 天前
React社区
前端·react.js·前端框架
LFly_ice1 天前
学习React-24-路由传参
前端·学习·react.js
Lhuu(重开版1 天前
CSS:动效布局动画
前端·css
Q***K551 天前
前端构建工具
前端
laocooon5238578861 天前
创建了一个带悬停效果的“我的个人主页“按钮
前端
2013编程爱好者1 天前
Vue工程结构分析
前端·javascript·vue.js·typescript·前端框架
小满zs1 天前
Next.js第十一章(渲染基础概念)
前端