瀏覽代碼

Hide the status element off-screen to avoid additional page in PDF print

quilicicf 5 年之前
父節點
當前提交
6564950c28
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 1
      dist/reveal.min.js
  2. 2 0
      js/reveal.js

文件差異過大導致無法顯示
+ 1 - 1
dist/reveal.min.js


+ 2 - 0
js/reveal.js

@@ -292,6 +292,8 @@ export default function( revealElement, options ) {
 			statusElement.style.position = 'absolute';
 			statusElement.style.height = '1px';
 			statusElement.style.width = '1px';
+			statusElement.style.top = '-1px';
+			statusElement.style.left = '-1px';
 			statusElement.style.overflow = 'hidden';
 			statusElement.style.clip = 'rect( 1px, 1px, 1px, 1px )';
 			statusElement.classList.add( 'aria-status' );

部分文件因文件數量過多而無法顯示