diff --git a/src/plugins/zoom-image.js b/src/plugins/zoom-image.js index 9b74c953e..52e1ebef7 100644 --- a/src/plugins/zoom-image.js +++ b/src/plugins/zoom-image.js @@ -10,13 +10,17 @@ function install(hook) { ), ); + Docsify.dom.style( + `.medium-zoom-image--opened,.medium-zoom-overlay{z-index:999}`, + ); + elms = elms.filter(elm => !elm.matches('a img')); if (zoom) { zoom.detach(); } - zoom = mediumZoom(elms); + zoom = mediumZoom(elms, { background: 'var(--color-bg)' }); }); }