feat: PDF对比用PDF.js渲染+滚动同步
This commit is contained in:
@@ -75,12 +75,21 @@ body {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
height: 70vh;
|
||||
}
|
||||
|
||||
.compare-panel {
|
||||
padding: 15px;
|
||||
border-radius: 5px;
|
||||
background-color: #f8f9fa;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.compare-panel h5 {
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.compare-panel.original {
|
||||
@@ -91,6 +100,27 @@ body {
|
||||
border-left: 4px solid var(--success-color);
|
||||
}
|
||||
|
||||
.compare-panel iframe {
|
||||
width: 100%;
|
||||
height: calc(100% - 40px);
|
||||
border: none;
|
||||
}
|
||||
|
||||
#pdfContainer {
|
||||
height: calc(100% - 40px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
#pdfPages {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.pdf-page-canvas {
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 3px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
/* 会员卡片 */
|
||||
.pricing-card {
|
||||
transition: transform 0.3s ease;
|
||||
|
||||
Reference in New Issue
Block a user