Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
PangXitong committed Aug 19, 2024
1 parent a721edf commit 39a47bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h2 id="billing-frequency-header" class="h6-mktg mb-3">一名中国青年大学
var zoomLevel = 1; // 初始缩放级别为100%
// 定义放大和缩小的函数
function zoomIn() {
zoomLevel = 1.75; // 设置新的缩放级别为125%
zoomLevel = 1.50; // 设置新的缩放级别为125%
document.body.style.zoom = zoomLevel * 100 + '%'; // 应用缩放
zoomButton.textContent = '恢复到原始大小'; // 更改按钮文本
zoomButton.onclick = zoomOut; // 更改按钮点击事件为缩小
Expand Down

0 comments on commit 39a47bd

Please sign in to comment.